From 35728d4f142bbab0d8a963561d76b9066421b1ac Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Fri, 21 Jun 2002 18:15:56 +0000 Subject: 2002-06-21 Jeff Johnston * libc/include/math.h: Add 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 . 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. --- newlib/libc/include/sys/param.h | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) (limited to 'newlib/libc/include/sys/param.h') diff --git a/newlib/libc/include/sys/param.h b/newlib/libc/include/sys/param.h index edb9639cd..4e8e56285 100644 --- a/newlib/libc/include/sys/param.h +++ b/newlib/libc/include/sys/param.h @@ -7,24 +7,22 @@ #include -# define HZ (60) -# define NOFILE (60) -# define PATHSIZE (1024) - +#ifndef BIG_ENDIAN #define BIG_ENDIAN 4321 +#endif +#ifndef LITTLE_ENDIAN #define LITTLE_ENDIAN 1234 - -#ifdef __IEEE_LITTLE_ENDIAN -#define BYTE_ORDER LITTLE_ENDIAN #endif -#ifdef __IEEE_BIG_ENDIAN -#define BYTE_ORDER BIG_ENDIAN -#endif +# define HZ (60) +# define NOFILE (60) +# define PATHSIZE (1024) -#ifdef __i386__ #ifndef BYTE_ORDER +#ifdef __IEEE_LITTLE_ENDIAN #define BYTE_ORDER LITTLE_ENDIAN +#else +#define BYTE_ORDER BIG_ENDIAN #endif #endif -- cgit v1.2.3