diff --git a/libc/include/inttypes.h b/libc/include/inttypes.h index 75802b3f..c2d9bcf7 100644 --- a/libc/include/inttypes.h +++ b/libc/include/inttypes.h @@ -1,6 +1,6 @@ /******************************************************************************* - Copyright(C) Jonas 'Sortie' Termansen 2012, 2013. + Copyright(C) Jonas 'Sortie' Termansen 2012, 2013, 2014. This file is part of the Sortix C Library. @@ -31,6 +31,8 @@ #include +#if __USE_SORTIX || defined(__STDC_FORMAT_MACROS) || !defined(__cplusplus) + #define PRId8 __PRId8 #define PRIi8 __PRIi8 #define PRIo8 __PRIo8 @@ -199,6 +201,8 @@ #define SCNuMAX __SCNuMAX #define SCNxMAX __SCNxMAX +#endif + __BEGIN_DECLS #ifndef __wchar_t_defined