summaryrefslogtreecommitdiff
path: root/arch/arm/bits
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/bits')
-rw-r--r--arch/arm/bits/alltypes.h.in6
-rw-r--r--arch/arm/bits/endian.h5
2 files changed, 6 insertions, 5 deletions
diff --git a/arch/arm/bits/alltypes.h.in b/arch/arm/bits/alltypes.h.in
index b92ca732..42825bff 100644
--- a/arch/arm/bits/alltypes.h.in
+++ b/arch/arm/bits/alltypes.h.in
@@ -2,6 +2,12 @@
#define _Int64 long long
#define _Reg int
+#if __ARMEB__
+#define __BYTE_ORDER 4321
+#else
+#define __BYTE_ORDER 1234
+#endif
+
#ifndef __cplusplus
TYPEDEF unsigned wchar_t;
#endif
diff --git a/arch/arm/bits/endian.h b/arch/arm/bits/endian.h
deleted file mode 100644
index 5953724a..00000000
--- a/arch/arm/bits/endian.h
+++ /dev/null
@@ -1,5 +0,0 @@
-#if __ARMEB__
-#define __BYTE_ORDER __BIG_ENDIAN
-#else
-#define __BYTE_ORDER __LITTLE_ENDIAN
-#endif