Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/cborpretty.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
#include "compilersupport_p.h"
#include "utf8_p.h"

// Include sys/types.h before inttypes.h to work around issue with
// certain versions of GCC and newlib which causes omission of PRIx64
Comment on lines +32 to +33
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment wasn't necessary. But I'll allow it.

However, is this high enough? Imagine something changes in the headers above and breaks? Especially cbor.h, which includes stdint.h.

#include <sys/types.h>
#include <inttypes.h>
#include <string.h>

Expand Down
3 changes: 3 additions & 0 deletions src/cbortojson.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
#include "cborinternal_p.h"
#include <memory.h>

// Include sys/types.h before inttypes.h to work around issue with
// certain versions of GCC and newlib which causes omission of PRIx64
#include <sys/types.h>
#include <inttypes.h>
#include <stdio.h>
#include <stdlib.h>
Expand Down