summaryrefslogtreecommitdiff
path: root/sysdeps/mips/bits/endian.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/mips/bits/endian.h')
-rw-r--r--sysdeps/mips/bits/endian.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sysdeps/mips/bits/endian.h b/sysdeps/mips/bits/endian.h
index ba555cd76e..40321a2866 100644
--- a/sysdeps/mips/bits/endian.h
+++ b/sysdeps/mips/bits/endian.h
@@ -1,4 +1,8 @@
/* The MIPS architecture has selectable endianness.
This file is for a machine using big-endian mode. */
+#ifndef _ENDIAN_H
+# error "Never use <bits/endian.h> directly; include <endian.h> instead."
+#endif
+
#define __BYTE_ORDER __BIG_ENDIAN