summaryrefslogtreecommitdiffstats
path: root/newlib/libc/include/stdint.h
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2015-04-29 13:06:45 +0200
committerCorinna Vinschen <corinna@vinschen.de>2015-04-29 13:06:45 +0200
commit496380c166667907202c7793436187940d39df14 (patch)
treef086a475ea18d10fece4adc777c652c4640b67a3 /newlib/libc/include/stdint.h
parent9d2727e9a3355f1d48ff3ccc28c453d0bc3ca435 (diff)
downloadcygnal-496380c166667907202c7793436187940d39df14.tar.gz
cygnal-496380c166667907202c7793436187940d39df14.tar.bz2
cygnal-496380c166667907202c7793436187940d39df14.zip
Improve check for int32_t being long or int
* libc/include/sys/config.h: Move evaluation of _UINTPTR_EQ_ULONG and _UINTPTR_EQ_ULONGLONG from here... * libc/include/sys/_intsup.h: ...to here. Rename to _INTPTR_EQ_LONG and _INTPTR_EQ_LONGLONG to refer to signed base type. Add test for base type of int32_t and set _INT32_EQ_LONG accordingly. * libc/include/stdint.h: Change checks for __have_long32 to checks for _INT32_EQ_LONG. * libc/include/inttypes.h: Ditto. Accommodate aforementioned name change. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'newlib/libc/include/stdint.h')
-rw-r--r--newlib/libc/include/stdint.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/newlib/libc/include/stdint.h b/newlib/libc/include/stdint.h
index aa9d68e9e..bd65cd0e0 100644
--- a/newlib/libc/include/stdint.h
+++ b/newlib/libc/include/stdint.h
@@ -216,7 +216,7 @@ typedef __uint_least64_t uint_least64_t;
#define INT32_MAX (__INT32_MAX__)
#define UINT32_MAX (__UINT32_MAX__)
#elif defined(__int32_t_defined)
-#if __have_long32
+#if defined (_INT32_EQ_LONG)
#define INT32_MIN (-2147483647L-1)
#define INT32_MAX (2147483647L)
#define UINT32_MAX (4294967295UL)
@@ -232,7 +232,7 @@ typedef __uint_least64_t uint_least64_t;
#define INT_LEAST32_MAX (__INT_LEAST32_MAX__)
#define UINT_LEAST32_MAX (__UINT_LEAST32_MAX__)
#elif defined(__int_least32_t_defined)
-#if __have_long32
+#if defined (_INT32_EQ_LONG)
#define INT_LEAST32_MIN (-2147483647L-1)
#define INT_LEAST32_MAX (2147483647L)
#define UINT_LEAST32_MAX (4294967295UL)
@@ -439,7 +439,7 @@ typedef __uint_least64_t uint_least64_t;
#define INT32_C(x) __INT32_C(x)
#define UINT32_C(x) __UINT32_C(x)
#else
-#if __have_long32
+#if defined (_INT32_EQ_LONG)
#define INT32_C(x) x##L
#define UINT32_C(x) x##UL
#else