Skip to content

Commit

Permalink
Replace Standard C library header files by C++ header files
Browse files Browse the repository at this point in the history
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 <sw@weilnetz.de>
  • Loading branch information
stweil committed May 17, 2017
1 parent 697f842 commit 3a6a8d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ccutil/host.h
Expand Up @@ -68,8 +68,8 @@
#undef max
#endif

#include <inttypes.h> // PRId32, ...
#include <stdint.h> // int32_t, ...
#include <cinttypes> // PRId32, ...
#include <cstdint> // int32_t, ...

/********************************************************/
/* __MAC__ */
Expand Down

0 comments on commit 3a6a8d7

Please sign in to comment.