Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2002-06-21 22:44:09 +0400
committerJeff Johnston <jjohnstn@redhat.com>2002-06-21 22:44:09 +0400
commit55105f8660765dfc0e48a4c6005eba93f49c3fe1 (patch)
treec5936d7efefcda71dc2c66c0aadb976c06a94607 /newlib/libc/sys
parent2e78444a3ee1c59c0e74d349af163b024f1e8c06 (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')
-rw-r--r--newlib/libc/sys/arm/sys/param.h9
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