summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/i960/bits/endian.h
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-06-18 01:10:28 +0000
committerEric Andersen <andersen@codepoet.org>2002-06-18 01:10:28 +0000
commitb34e006872e0c6c6f851ca36eda46d01e3ca0e6b (patch)
tree8206ca5739109e6482643cbea01975601c39b3b0 /libc/sysdeps/linux/i960/bits/endian.h
parent33a9fd74f98749da869c8d649f0a148768205867 (diff)
Patch from Martin Proulx <mproulx@okiok.com> to support
the i960 architecture.
Diffstat (limited to 'libc/sysdeps/linux/i960/bits/endian.h')
-rw-r--r--libc/sysdeps/linux/i960/bits/endian.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/i960/bits/endian.h b/libc/sysdeps/linux/i960/bits/endian.h
new file mode 100644
index 000000000..e2b13161c
--- /dev/null
+++ b/libc/sysdeps/linux/i960/bits/endian.h
@@ -0,0 +1,15 @@
+/* This file should define __BYTE_ORDER as appropriate for the machine
+ in question. See string/endian.h for how to define it.
+
+ If only the stub bits/endian.h applies to a particular configuration,
+ bytesex.h is generated by running a program on the host machine.
+ So if cross-compiling to a machine with a different byte order,
+ the bits/endian.h file for that machine must exist. */
+
+#ifndef _ENDIAN_H
+# error "Never use <bits/endian.h> directly; include <endian.h> instead."
+#endif
+
+#define __BYTE_ORDER __LITTLE_ENDIAN
+
+