about summary refs log tree commit diff
path: root/sysdeps/m68k/bits/endianness.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/m68k/bits/endianness.h')
-rw-r--r--sysdeps/m68k/bits/endianness.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/sysdeps/m68k/bits/endianness.h b/sysdeps/m68k/bits/endianness.h
new file mode 100644
index 0000000000..7e5f0d2969
--- /dev/null
+++ b/sysdeps/m68k/bits/endianness.h
@@ -0,0 +1,11 @@
+#ifndef _BITS_ENDIANNESS_H
+#define _BITS_ENDIANNESS_H 1
+
+#ifndef _BITS_ENDIAN_H
+# error "Never use <bits/endianness.h> directly; include <endian.h> instead."
+#endif
+
+/* m68k is big-endian.  */
+#define __BYTE_ORDER __BIG_ENDIAN
+
+#endif /* bits/endianness.h */