summary refs log tree commit diff
path: root/string/endian.h
diff options
context:
space:
mode:
Diffstat (limited to 'string/endian.h')
-rw-r--r--string/endian.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/string/endian.h b/string/endian.h
index 0eb534e434..1a9fe3c97e 100644
--- a/string/endian.h
+++ b/string/endian.h
@@ -23,12 +23,14 @@
 /* Get the definitions of __*_ENDIAN, __BYTE_ORDER, and __FLOAT_WORD_ORDER.  */
 #include <bits/endian.h>
 
-#define LITTLE_ENDIAN	__LITTLE_ENDIAN
-#define BIG_ENDIAN	__BIG_ENDIAN
-#define PDP_ENDIAN	__PDP_ENDIAN
-#define BYTE_ORDER	__BYTE_ORDER
+#ifdef __USE_MISC
+# define LITTLE_ENDIAN	__LITTLE_ENDIAN
+# define BIG_ENDIAN	__BIG_ENDIAN
+# define PDP_ENDIAN	__PDP_ENDIAN
+# define BYTE_ORDER	__BYTE_ORDER
+#endif
 
-#ifndef __ASSEMBLER__
+#if defined __USE_MISC && !defined __ASSEMBLER__
 /* Conversion interfaces.  */
 # include <bits/byteswap.h>
 # include <bits/uintn-identity.h>