about summary refs log tree commit diff
path: root/sysdeps/csky/bits/endian.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/csky/bits/endian.h')
-rw-r--r--sysdeps/csky/bits/endian.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/sysdeps/csky/bits/endian.h b/sysdeps/csky/bits/endian.h
new file mode 100644
index 0000000000..51df38d8f9
--- /dev/null
+++ b/sysdeps/csky/bits/endian.h
@@ -0,0 +1,9 @@
+#ifndef _ENDIAN_H
+# error "Never use <bits/endian.h> directly; include <endian.h> instead."
+#endif
+
+#ifdef __CSKYBE__
+# error "Big endian not supported for C-SKY."
+#else
+# define __BYTE_ORDER __LITTLE_ENDIAN
+#endif