about summary refs log tree commit diff
path: root/sysdeps/mips/dec/bits/endian.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/mips/dec/bits/endian.h')
-rw-r--r--sysdeps/mips/dec/bits/endian.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sysdeps/mips/dec/bits/endian.h b/sysdeps/mips/dec/bits/endian.h
index 157bc44d06..0bdb378944 100644
--- a/sysdeps/mips/dec/bits/endian.h
+++ b/sysdeps/mips/dec/bits/endian.h
@@ -1,4 +1,8 @@
 /* The MIPS architecture has selectable endianness.
    The DECstation uses little-endian mode.  */
 
+#ifndef _ENDIAN_H
+# error "Never use <bits/endian.h> directly; include <endian.h> instead."
+#endif
+
 #define __BYTE_ORDER __LITTLE_ENDIAN