From ead7cc00be909b11793bfec97b2164ced8965156 Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Thu, 3 Apr 2014 00:25:45 +0200 Subject: [PATCH] Honor feature macros in . --- libc/include/inttypes.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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