about summary refs log tree commit diff
path: root/sysdeps/generic/bits/endian.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/generic/bits/endian.h')
-rw-r--r--sysdeps/generic/bits/endian.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sysdeps/generic/bits/endian.h b/sysdeps/generic/bits/endian.h
index 597f079a0f..45afd4ae47 100644
--- a/sysdeps/generic/bits/endian.h
+++ b/sysdeps/generic/bits/endian.h
@@ -6,4 +6,8 @@
    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
+
 #error Machine byte order unknown.