diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2002-06-21 22:44:09 +0400 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2002-06-21 22:44:09 +0400 |
commit | 55105f8660765dfc0e48a4c6005eba93f49c3fe1 (patch) | |
tree | c5936d7efefcda71dc2c66c0aadb976c06a94607 /newlib/libc/sys/arm | |
parent | 2e78444a3ee1c59c0e74d349af163b024f1e8c06 (diff) |
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.
Diffstat (limited to 'newlib/libc/sys/arm')
-rw-r--r-- | newlib/libc/sys/arm/sys/param.h | 9 |
1 files changed, 9 insertions, 0 deletions
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 |