From 55105f8660765dfc0e48a4c6005eba93f49c3fe1 Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Fri, 21 Jun 2002 18:44:09 +0000 Subject: [PATCH] 2002-06-21 Richard Earnshaw (rearnsha@arm.com) * libc/sys/arm/sys/param.h (BIG_ENDIAN, LITTLE_ENDIAN): Define. (BYTE_ORDER): Define as appropriate for the target. --- newlib/ChangeLog | 5 +++++ newlib/libc/sys/arm/sys/param.h | 9 +++++++++ 2 files changed, 14 insertions(+) diff --git a/newlib/ChangeLog b/newlib/ChangeLog index e00faf93f..47c510a2e 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,8 @@ +2002-06-21 Richard Earnshaw (rearnsha@arm.com) + + * libc/sys/arm/sys/param.h (BIG_ENDIAN, LITTLE_ENDIAN): Define. + (BYTE_ORDER): Define as appropriate for the target. + 2002-06-21 Jeff Johnston * libc/include/sys/config.h[__linux__]: Set _READ_WRITE_RETURN_TYPE diff --git a/newlib/libc/sys/arm/sys/param.h b/newlib/libc/sys/arm/sys/param.h index 968c8ef14..adc066e9a 100644 --- a/newlib/libc/sys/arm/sys/param.h +++ b/newlib/libc/sys/arm/sys/param.h @@ -7,4 +7,13 @@ # define NOFILE (60) # define PATHSIZE (1024) +#define BIG_ENDIAN 4321 +#define LITTLE_ENDIAN 1234 + +#ifdef __ARMEB__ +#define BYTE_ORDER BIG_ENDIAN +#else +#define BYTE_ORDER LITTLE_ENDIAN +#endif + #endif