diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2014-10-09 15:57:50 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2014-10-09 15:57:50 +0000 |
commit | 50f799240ec354800dd4fe9410807d58f124103a (patch) | |
tree | fb148921fe03ab784fc32f8de3d360a795f8b5be /newlib/libc/include/stdint.h | |
parent | 0613efefc722b8cdfcfb47465af684e685fa051b (diff) | |
download | cygnal-50f799240ec354800dd4fe9410807d58f124103a.tar.gz cygnal-50f799240ec354800dd4fe9410807d58f124103a.tar.bz2 cygnal-50f799240ec354800dd4fe9410807d58f124103a.zip |
2014-10-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libc/include/stdint.h: Include <sys/_intsup.h>.
(__STDINT_EXP): Delete.
(__have_long32): Likewise.
(__have_long64): Likewise.
(__have_longlong64): Likewise.
* libc/include/sys/_intsup.h: New file.
(__STDINT_EXP): Move from libc/include/stdint.h.
(__have_long32): Likewise.
(__have_long64): Likewise.
(__have_longlong64): Likewise.
* libc/include/inttypes.h: Include <sys/_intsup.h>.
(__INTTYPES_EXP): Delete and use __STDINT_EXP() instead.
Diffstat (limited to 'newlib/libc/include/stdint.h')
-rw-r--r-- | newlib/libc/include/stdint.h | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/newlib/libc/include/stdint.h b/newlib/libc/include/stdint.h index 77431c706..7386164b9 100644 --- a/newlib/libc/include/stdint.h +++ b/newlib/libc/include/stdint.h @@ -10,33 +10,12 @@ #define _STDINT_H #include <machine/_default_types.h> +#include <sys/_intsup.h> #ifdef __cplusplus extern "C" { #endif -#if __GNUC_PREREQ (3, 2) -/* gcc > 3.2 implicitly defines the values we are interested */ -#define __STDINT_EXP(x) __##x##__ -#else -#define __STDINT_EXP(x) x -#include <limits.h> -#endif - -/* Check if "long long" is 64bit wide */ -/* Modern GCCs provide __LONG_LONG_MAX__, SUSv3 wants LLONG_MAX */ -#if ( defined(__LONG_LONG_MAX__) && (__LONG_LONG_MAX__ > 0x7fffffff) ) \ - || ( defined(LLONG_MAX) && (LLONG_MAX > 0x7fffffff) ) -#define __have_longlong64 1 -#endif - -/* Check if "long" is 64bit or 32bit wide */ -#if __STDINT_EXP(LONG_MAX) > 0x7fffffff -#define __have_long64 1 -#elif __STDINT_EXP(LONG_MAX) == 0x7fffffff && !defined(__SPU__) -#define __have_long32 1 -#endif - #ifdef ___int8_t_defined typedef __int8_t int8_t ; typedef __uint8_t uint8_t ; |