Skip to content

Commit 3a6a8d7

Browse files
committed
Replace Standard C library header files by C++ header files
Replacing inttypes.h by cinttypes fixes a problem with glibc < 2.18: In older inttypes.h, the standard C format macros are only defined for C++ when the macro __STDC_FORMAT_MACROS is set. Signed-off-by: Stefan Weil <[email protected]>
1 parent 697f842 commit 3a6a8d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ccutil/host.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@
6868
#undef max
6969
#endif
7070

71-
#include <inttypes.h> // PRId32, ...
72-
#include <stdint.h> // int32_t, ...
71+
#include <cinttypes> // PRId32, ...
72+
#include <cstdint> // int32_t, ...
7373

7474
/********************************************************/
7575
/* __MAC__ */

0 commit comments

Comments
 (0)