about summary refs log tree commit diff
path: root/sysdeps/sparc/sparc64/bits/endian.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/sparc/sparc64/bits/endian.h')
-rw-r--r--sysdeps/sparc/sparc64/bits/endian.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/sysdeps/sparc/sparc64/bits/endian.h b/sysdeps/sparc/sparc64/bits/endian.h
index a2ab07249a..8acfdf5df6 100644
--- a/sysdeps/sparc/sparc64/bits/endian.h
+++ b/sysdeps/sparc/sparc64/bits/endian.h
@@ -1,8 +1,12 @@
 /* Sparc is big-endian, but v9 supports endian conversion on loads/stores
    and GCC supports such a mode.  Be prepared.  */
 
+#ifndef _ENDIAN_H
+# error "Never use <bits/endian.h> directly; include <endian.h> instead."
+#endif
+
 #ifdef __LITTLE_ENDIAN__
-#define __BYTE_ORDER __LITTLE_ENDIAN
+# define __BYTE_ORDER __LITTLE_ENDIAN
 #else
-#define __BYTE_ORDER __BIG_ENDIAN
+# define __BYTE_ORDER __BIG_ENDIAN
 #endif