about summary refs log tree commit diff
path: root/arch/mips/bits/endian.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/bits/endian.h')
-rw-r--r--arch/mips/bits/endian.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/mips/bits/endian.h b/arch/mips/bits/endian.h
index ef074b77..5399dcb5 100644
--- a/arch/mips/bits/endian.h
+++ b/arch/mips/bits/endian.h
@@ -1 +1,5 @@
+#if _MIPSEL || __MIPSEL || __MIPSEL__
+#define __BYTE_ORDER __LITTLE_ENDIAN
+#else
 #define __BYTE_ORDER __BIG_ENDIAN
+#endif