summaryrefslogtreecommitdiff
path: root/arch/ppc/bits/endian.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/ppc/bits/endian.h')
-rw-r--r--arch/ppc/bits/endian.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/ppc/bits/endian.h b/arch/ppc/bits/endian.h
new file mode 100644
index 00000000..4442abf4
--- /dev/null
+++ b/arch/ppc/bits/endian.h
@@ -0,0 +1,15 @@
+#ifdef __BIG_ENDIAN__
+ #if __BIG_ENDIAN__
+ #define __BYTE_ORDER __BIG_ENDIAN
+ #endif
+#endif /* __BIG_ENDIAN__ */
+
+#ifdef __LITTLE_ENDIAN__
+ #if __LITTLE_ENDIAN__
+ #define __BYTE_ORDER __LITTLE_ENDIAN
+ #endif
+#endif /* __LITTLE_ENDIAN__ */
+
+#ifndef __BYTE_ORDER
+ #define __BYTE_ORDER __BIG_ENDIAN
+#endif