summary refs log tree commit diff
path: root/sysdeps/i386/bits/endian.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/i386/bits/endian.h')
-rw-r--r--sysdeps/i386/bits/endian.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sysdeps/i386/bits/endian.h b/sysdeps/i386/bits/endian.h
index a5d6c5ea92..54bd9d14bb 100644
--- a/sysdeps/i386/bits/endian.h
+++ b/sysdeps/i386/bits/endian.h
@@ -1,3 +1,7 @@
 /* i386 is little-endian.  */
 
+#ifndef _ENDIAN_H
+# error "Never use <bits/endian.h> directly; include <endian.h> instead."
+#endif
+
 #define __BYTE_ORDER __LITTLE_ENDIAN