path: root/include
diff options
authorRich Felker <>2013-04-22 20:47:34 -0400
committerRich Felker <>2013-04-22 20:47:34 -0400
commit43653c1250ad5eb5385d7e08292ad047420f8d25 (patch)
tree88243e12cc8a3b2b91a3763d9c599eaa4903ac23 /include
parentae0c1de530bc3b27069008b8b247171d08dbe80b (diff)
remove __STDC_LIMIT_MACROS and __STDC_CONSTANT_MACROS checks in stdint.h
C++11, the first C++ with stdint.h, requires the previously protected macros to be exposed unconditionally by stdint.h. apparently these checks were an early attempt by the C committee to guess what the C++ committee would want, and they guessed wrong.
Diffstat (limited to 'include')
1 files changed, 0 insertions, 8 deletions
diff --git a/include/stdint.h b/include/stdint.h
index 138fb211..76284048 100644
--- a/include/stdint.h
+++ b/include/stdint.h
@@ -39,8 +39,6 @@ typedef uint16_t uint_least16_t;
typedef uint32_t uint_least32_t;
typedef uint64_t uint_least64_t;
-#if !defined __cplusplus || defined __STDC_LIMIT_MACROS
#define INT8_MIN (-1-0x7f)
#define INT16_MIN (-1-0x7fff)
#define INT32_MIN (-1-0x7fffffff)
@@ -88,10 +86,6 @@ typedef uint64_t uint_least64_t;
#include <bits/stdint.h>
-#if !defined __cplusplus || defined __STDC_CONSTANT_MACROS
#define INT8_C(c) c
#define INT16_C(c) c
#define INT32_C(c) c
@@ -113,5 +107,3 @@ typedef uint64_t uint_least64_t;