diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2005-12-16 19:03:12 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2005-12-16 19:03:12 +0000 |
commit | 843e635aaa02f16f314688ba5dd8a5edc3929095 (patch) | |
tree | 0013fed0395e7ea9a0d33acb424fd5d1d32ee0c7 /newlib/libc/include/stdint.h | |
parent | fd01d14ab1258e2601a94dc3734fa7505942391d (diff) | |
download | cygnal-843e635aaa02f16f314688ba5dd8a5edc3929095.tar.gz cygnal-843e635aaa02f16f314688ba5dd8a5edc3929095.tar.bz2 cygnal-843e635aaa02f16f314688ba5dd8a5edc3929095.zip |
2005-12-16 Ralf Corsepius <ralf.corsepius@rtems.org>
* libc/include/stdint.h: Prefer long over int for int32_t.
Use __have_long32 to set up int32_t.
* libc/include/inttypes.h: Use "#if xxx" instead of "#ifdef xxx"
(Sync with stdint.h).
Diffstat (limited to 'newlib/libc/include/stdint.h')
-rw-r--r-- | newlib/libc/include/stdint.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/newlib/libc/include/stdint.h b/newlib/libc/include/stdint.h index 0c8f23ada..328b094c9 100644 --- a/newlib/libc/include/stdint.h +++ b/newlib/libc/include/stdint.h @@ -79,14 +79,14 @@ typedef uint16_t uint_least8_t; #endif #endif -#if __STDINT_EXP(INT_MAX) == 0x7fffffffL -typedef signed int int32_t; -typedef unsigned int uint32_t; -#define __int32_t_defined 1 -#elif __STDINT_EXP(LONG_MAX) == 0x7fffffffL +#if __have_long32 typedef signed long int32_t; typedef unsigned long uint32_t; #define __int32_t_defined 1 +#elif __STDINT_EXP(INT_MAX) == 0x7fffffffL +typedef signed int int32_t; +typedef unsigned int uint32_t; +#define __int32_t_defined 1 #elif __STDINT_EXP(SHRT_MAX) == 0x7fffffffL typedef signed short int32_t; typedef unsigned short uint32_t; |