summaryrefslogtreecommitdiffstats
path: root/newlib/libc/include/sys/config.h
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2002-06-21 18:15:56 +0000
committerJeff Johnston <jjohnstn@redhat.com>2002-06-21 18:15:56 +0000
commit35728d4f142bbab0d8a963561d76b9066421b1ac (patch)
tree50f088a19541dab5e4799a93683486c8c76f125c /newlib/libc/include/sys/config.h
parentcd6df12137d3bac67e5c01610efaf370e18baa24 (diff)
downloadcygnal-35728d4f142bbab0d8a963561d76b9066421b1ac.tar.gz
cygnal-35728d4f142bbab0d8a963561d76b9066421b1ac.tar.bz2
cygnal-35728d4f142bbab0d8a963561d76b9066421b1ac.zip
2002-06-21 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/math.h: Add <sys/types.h> to get _uint32_t definition. * libc/include/machine/types.h: Skip __off_t, __pid_t, and __loff_t definitions if special _HAVE_SYSTYPES macro defined. * libc/include/sys/config.h: Removed _uint*, _int* definitions. * libc/include/sys/param.h: Remove i386 case which is handled by default case. (BIG_ENDIAN, LITTLE_ENDIAN): Protect definitions in case they are already defined. (BYTE_ORDER): Add default case using _IEEE_BIG_ENDIAN and _IEEE_LITTLE_ENDIAN flags. * libc/include/sys/reent.h: Change __uint32_t references to use _ULong instead. (_REENT_GETDATE_REENT_P): New macro. * libc/include/sys/types.h (__int16_t, __uint16_t): Added. (__int32_t, __uint32_t, __int64_t, __uint64_t): Ditto. * libc/search/hash.h: Add default setting of BYTE_ORDER, LITTLE_ENDIAN, and BIG_ENDIAN, if not already defined. * libc/sys/linux/sys/types.h: Include <sys/_types.h>. Define ssize_t based on _ssize_t. Remove __socklen_t, __uintptr_t, pid_t, off_t, loff_t, caddr_t, and daddr_t type definitions which are done by subsequent glibc headers. Add macro definitions to prevent subsequent header files from defining pid_t, off_t, ssize_t, and key_t. Move uintptr_t and intptr_t to after glibc definitions of types they are based on.
Diffstat (limited to 'newlib/libc/include/sys/config.h')
-rw-r--r--newlib/libc/include/sys/config.h21
1 files changed, 2 insertions, 19 deletions
diff --git a/newlib/libc/include/sys/config.h b/newlib/libc/include/sys/config.h
index b2b8013d9..85683bc70 100644
--- a/newlib/libc/include/sys/config.h
+++ b/newlib/libc/include/sys/config.h
@@ -57,6 +57,8 @@
#ifdef __linux__
/* we want the reentrancy structure to be returned by a function */
#define __DYNAMIC_REENT__
+#define HAVE_GETDATE
+#define _HAVE_SYSTYPES
#endif
#endif
@@ -130,9 +132,6 @@
#define _REENT_SMALL
#endif
-typedef short int __int16_t;
-typedef unsigned short int __uint16_t;
-
/* This block should be kept in sync with GCC's limits.h. The point
of having these definitions here is to not include limits.h, which
would pollute the user namespace, while still using types of the
@@ -160,22 +159,6 @@ typedef unsigned short int __uint16_t;
#endif
/* End of block that should be kept in sync with GCC's limits.h. */
-#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
-
#ifndef _POINTER_INT
#define _POINTER_INT long
#endif