aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/mips/p40/bits/endian.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/mips/p40/bits/endian.h')
-rw-r--r--sysdeps/mips/p40/bits/endian.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sysdeps/mips/p40/bits/endian.h b/sysdeps/mips/p40/bits/endian.h
index e4b0119433..f6cdde2cb3 100644
--- a/sysdeps/mips/p40/bits/endian.h
+++ b/sysdeps/mips/p40/bits/endian.h
@@ -1,4 +1,8 @@
/* The MIPS has selectable endianness.
The Japanese homebrew P40 architecture uses big-endian mode. */
+#ifndef _ENDIAN_H
+# error "Never use <bits/endian.h> directly; include <endian.h> instead."
+#endif
+
#define __BYTE_ORDER __BIG_ENDIAN