about summary refs log tree commit diff
path: root/arch/powerpc/bits/endian.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/bits/endian.h')
-rw-r--r--arch/powerpc/bits/endian.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/powerpc/bits/endian.h b/arch/powerpc/bits/endian.h
new file mode 100644
index 00000000..4442abf4
--- /dev/null
+++ b/arch/powerpc/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