diff options
Diffstat (limited to 'newlib/libc')
-rw-r--r-- | newlib/libc/include/machine/_types.h (renamed from newlib/libc/sys/rtems/machine/_types.h) | 0 | ||||
-rw-r--r-- | newlib/libc/include/sys/types.h | 24 |
2 files changed, 2 insertions, 22 deletions
diff --git a/newlib/libc/sys/rtems/machine/_types.h b/newlib/libc/include/machine/_types.h index ab76561be..ab76561be 100644 --- a/newlib/libc/sys/rtems/machine/_types.h +++ b/newlib/libc/include/machine/_types.h diff --git a/newlib/libc/include/sys/types.h b/newlib/libc/include/sys/types.h index 944149589..5c288bfc0 100644 --- a/newlib/libc/include/sys/types.h +++ b/newlib/libc/include/sys/types.h @@ -22,35 +22,15 @@ #ifndef __INTTYPES_DEFINED__ #define __INTTYPES_DEFINED__ -#if !defined (__rtems__) -typedef short int __int16_t; -typedef unsigned short int __uint16_t; - -#if __INT_MAX__ == 32767 -typedef long int __int32_t; -typedef unsigned long int __uint32_t; -#else -typedef int __int32_t; -typedef unsigned int __uint32_t; -#endif - -#if __LONG_MAX__ > 2147483647 || !defined(__GNUC__) -typedef long int __int64_t; -typedef unsigned long int __uint64_t; -#else -__extension__ typedef long long __int64_t; -__extension__ typedef unsigned long long __uint64_t; -#endif -#else /* __rtems__ */ +#include <machine/_types.h> +#if defined(__rtems__) /* * The following section is RTEMS specific and is needed to more * closely match the types defined in the BSD sys/types.h. * This is needed to let the RTEMS/BSD TCP/IP stack compile. */ -#include <machine/_types.h> - /* deprecated */ #if ___int8_t_defined typedef __uint8_t u_int8_t; |