--- /dev/null
+/* This file must be overridden for each supported CPU architecture.
+ It should define __BYTE_ORDER to one of the constants defined in
+ string/bits/endian.h, as appropriate for the machine in
+ question. If floating-point quantities are not stored in the
+ same byte order as integer quantities, it should also define
+ __FLOAT_WORD_ORDER as appropriate. */
+
+#ifndef _BITS_ENDIANNESS_H
+#define _BITS_ENDIANNESS_H 1
+
+#ifndef _BITS_ENDIAN_H
+# error "Never use <bits/endianness.h> directly; include <endian.h> instead."
+#endif
+
+#error "Machine byte order unknown."
+
+#endif /* bits/endianness.h */
# mandated: inttypes.h -> stdint.h
# tgmath.h -> complex.h, math.h
# threads.h -> time.h
- "ctype.h": [ "endian.h" ],
"inttypes.h": [ "stdint.h" ],
"signal.h": [ "sys/ucontext.h" ],
"stdlib.h": [ "alloca.h", "sys/types.h" ],
"netdb.h": [ "netinet/in.h", "rpc/netdb.h" ],
"arpa/inet.h": [ "netinet/in.h" ],
"net/if.h": [ "sys/socket.h", "sys/types.h" ],
- "netinet/in.h": [ "endian.h", "sys/socket.h" ],
+ "netinet/in.h": [ "sys/socket.h" ],
"netinet/tcp.h": [ "stdint.h", "sys/socket.h",
"sys/types.h" ],
"envz.h": [ "argz.h", "errno.h" ],
"fts.h": [ "sys/types.h" ],
"gshadow.h": [ "paths.h" ],
- "ieee754.h": [ "endian.h", "float.h" ],
+ "ieee754.h": [ "float.h" ],
"lastlog.h": [ "utmp.h" ],
"libintl.h": [ "locale.h" ],
"link.h": [ "dlfcn.h", "elf.h", "sys/types.h" ],
"arpa/nameser.h": [ "arpa/nameser_compat.h", "stdint.h",
"sys/param.h", "sys/types.h" ],
- "arpa/nameser_compat.h": [ "endian.h" ],
"net/ethernet.h": [ "stdint.h", "sys/types.h",
"net/if_ether.h" ],
"net/if_arp.h": [ "stdint.h", "sys/socket.h",
"bits/fcntl.h": [ "sys/types.h" ],
"bits/ipc.h": [ "sys/types.h" ],
"bits/procfs.h": [ "signal.h", "sys/ucontext.h" ],
- "bits/pthreadtypes-arch.h": [ "endian.h" ],
"bits/sem.h": [ "sys/types.h" ],
"bits/socket.h": [ "sys/types.h" ],
- "bits/stat.h": [ "endian.h" ],
- "bits/statfs.h": [ "endian.h" ],
"bits/types/res_state.h": [ "netinet/in.h", "sys/types.h" ],
"bits/utmp.h": [ "paths.h", "sys/time.h", "sys/types.h" ],
"bits/utmpx.h": [ "paths.h", "sys/time.h" ],
- "bits/wctype-wchar.h": [ "endian.h" ],
}
# As above, but each group of whitelist entries is only used for
/* Get the definitions of __*_ENDIAN, __BYTE_ORDER, and __FLOAT_WORD_ORDER. */
#include <bits/endian.h>
-#ifdef __USE_MISC
-# define LITTLE_ENDIAN __LITTLE_ENDIAN
-# define BIG_ENDIAN __BIG_ENDIAN
-# define PDP_ENDIAN __PDP_ENDIAN
-# define BYTE_ORDER __BYTE_ORDER
-#endif
+#define LITTLE_ENDIAN __LITTLE_ENDIAN
+#define BIG_ENDIAN __BIG_ENDIAN
+#define PDP_ENDIAN __PDP_ENDIAN
+#define BYTE_ORDER __BYTE_ORDER
-#if defined __USE_MISC && !defined __ASSEMBLER__
+#ifndef __ASSEMBLER__
/* Conversion interfaces. */
# include <bits/byteswap.h>
# include <bits/uintn-identity.h>