summaryrefslogtreecommitdiffstats
path: root/newlib/libc/include/sys
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2005-03-06 20:32:16 +0000
committerJeff Johnston <jjohnstn@redhat.com>2005-03-06 20:32:16 +0000
commit2e7d9bf906c37584962e7d89b6de55c1fec9eeb3 (patch)
tree3792be5b32f5a081430764a736ad011bbdc6ca6a /newlib/libc/include/sys
parent3f02a8d0f4ca99d7e82fb678db8d50819ce4156e (diff)
downloadcygnal-2e7d9bf906c37584962e7d89b6de55c1fec9eeb3.tar.gz
cygnal-2e7d9bf906c37584962e7d89b6de55c1fec9eeb3.tar.bz2
cygnal-2e7d9bf906c37584962e7d89b6de55c1fec9eeb3.zip
2005-03-06 Ralf Corsepious <ralf.corsepius@rtems.org>
* libc/include/machine/_types.h: New file. * libc/include/sys/types.h: Do not check for __rtems__ when including <machine/_types.h>. Remove some redundant declarations now that <machine/_types.h> is included. * libc/sys/rtems/machine/_types.h: Removed. Replaced with shared header file.
Diffstat (limited to 'newlib/libc/include/sys')
-rw-r--r--newlib/libc/include/sys/types.h24
1 files changed, 2 insertions, 22 deletions
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;