From de5ac01a0b925452b3ffa63c68f300089f1cae3e Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Thu, 3 Apr 2014 23:45:19 +0200 Subject: [PATCH] Honor feature macros in . --- libc/include/stdint.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libc/include/stdint.h b/libc/include/stdint.h index 81b24a87..c946739c 100644 --- a/libc/include/stdint.h +++ b/libc/include/stdint.h @@ -22,8 +22,8 @@ *******************************************************************************/ -#ifndef _STDINT_H -#define _STDINT_H 1 +#ifndef INCLUDE_STDINT_H +#define INCLUDE_STDINT_H #include @@ -33,7 +33,7 @@ __BEGIN_DECLS /* Only define these constant macros in C++ if requested. */ -#if !defined(__cplusplus) || defined(__STDC_CONSTANT_MACROS) +#if __USE_SORTIX || defined(__STDC_CONSTANT_MACROS) || !defined(__cplusplus) #define INT8_C(c) __INT8_C(c) #define INT16_C(c) __INT16_C(c) @@ -51,7 +51,7 @@ __BEGIN_DECLS #endif /* Only define these limit macros in C++ if requested. */ -#if !defined(__cplusplus) || defined(__STDC_LIMIT_MACROS) +#if __USE_SORTIX || defined(__STDC_LIMIT_MACROS) || !defined(__cplusplus) #define INT8_MIN __INT8_MIN #define INT16_MIN __INT16_MIN