about summary refs log tree commit diff
path: root/sysdeps/csky/bits/endianness.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/csky/bits/endianness.h')
-rw-r--r--sysdeps/csky/bits/endianness.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/sysdeps/csky/bits/endianness.h b/sysdeps/csky/bits/endianness.h
new file mode 100644
index 0000000000..ad20cf64e0
--- /dev/null
+++ b/sysdeps/csky/bits/endianness.h
@@ -0,0 +1,14 @@
+#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
+
+#ifdef __CSKYBE__
+# error "Big endian not supported for C-SKY."
+#else
+# define __BYTE_ORDER __LITTLE_ENDIAN
+#endif
+
+#endif /* bits/endianness.h */