about summary refs log tree commit diff
path: root/arch/mipsn32/bits
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mipsn32/bits')
-rw-r--r--arch/mipsn32/bits/alltypes.h.in6
-rw-r--r--arch/mipsn32/bits/endian.h5
2 files changed, 6 insertions, 5 deletions
diff --git a/arch/mipsn32/bits/alltypes.h.in b/arch/mipsn32/bits/alltypes.h.in
index 0c7d4917..d5d51289 100644
--- a/arch/mipsn32/bits/alltypes.h.in
+++ b/arch/mipsn32/bits/alltypes.h.in
@@ -2,6 +2,12 @@
 #define _Int64 long long
 #define _Reg int
 
+#if _MIPSEL || __MIPSEL || __MIPSEL__
+#define __BYTE_ORDER 1234
+#else
+#define __BYTE_ORDER 4321
+#endif
+
 #ifndef __cplusplus
 TYPEDEF int wchar_t;
 #endif
diff --git a/arch/mipsn32/bits/endian.h b/arch/mipsn32/bits/endian.h
deleted file mode 100644
index 5399dcb5..00000000
--- a/arch/mipsn32/bits/endian.h
+++ /dev/null
@@ -1,5 +0,0 @@
-#if _MIPSEL || __MIPSEL || __MIPSEL__
-#define __BYTE_ORDER __LITTLE_ENDIAN
-#else
-#define __BYTE_ORDER __BIG_ENDIAN
-#endif