diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2015-04-29 13:06:45 +0200 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2015-04-29 13:07:17 +0200 |
commit | 6109eadff58d1fb7052e45c9d44ebc256a9bc5d1 (patch) | |
tree | 90624bfe00e4dc3be0ed8311870c6baa6d936a02 /newlib/libc/include/stdint.h | |
parent | 49c051c13352cd2fd2131a379d51a4a63c09283e (diff) | |
download | cygnal-6109eadff58d1fb7052e45c9d44ebc256a9bc5d1.tar.gz cygnal-6109eadff58d1fb7052e45c9d44ebc256a9bc5d1.tar.bz2 cygnal-6109eadff58d1fb7052e45c9d44ebc256a9bc5d1.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.h | 6 |
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 |