better support for reverse-endian variants of arm/mips/microblaze
[musl] / arch / mips / bits / endian.h
index ef074b7..5399dcb 100644 (file)
@@ -1 +1,5 @@
+#if _MIPSEL || __MIPSEL || __MIPSEL__
+#define __BYTE_ORDER __LITTLE_ENDIAN
+#else
 #define __BYTE_ORDER __BIG_ENDIAN
+#endif