diff --git a/libc/arch-arm/include/machine/endian.h b/libc/arch-arm/include/machine/endian.h index 8d9723d7a..04bba20dc 100644 --- a/libc/arch-arm/include/machine/endian.h +++ b/libc/arch-arm/include/machine/endian.h @@ -67,11 +67,7 @@ #endif /* __GNUC__ */ -#if defined(__ARMEB__) -#define _BYTE_ORDER _BIG_ENDIAN -#else #define _BYTE_ORDER _LITTLE_ENDIAN -#endif #define __STRICT_ALIGNMENT #include #include diff --git a/libc/arch-arm64/include/machine/endian.h b/libc/arch-arm64/include/machine/endian.h index 87a038d0e..474373363 100644 --- a/libc/arch-arm64/include/machine/endian.h +++ b/libc/arch-arm64/include/machine/endian.h @@ -29,9 +29,6 @@ #ifndef _AARCH64_ENDIAN_H_ #define _AARCH64_ENDIAN_H_ -#include -#include - #ifdef __GNUC__ #define __swap16md(x) ({ \ @@ -49,10 +46,8 @@ #endif /* __GNUC__ */ -#if defined(__AARCH64EB__) -#define _BYTE_ORDER _BIG_ENDIAN -#else #define _BYTE_ORDER _LITTLE_ENDIAN -#endif +#include +#include #endif /* _AARCH64_ENDIAN_H_ */ diff --git a/libc/arch-mips/include/machine/endian.h b/libc/arch-mips/include/machine/endian.h index 41a9004f4..9270e9d9f 100644 --- a/libc/arch-mips/include/machine/endian.h +++ b/libc/arch-mips/include/machine/endian.h @@ -58,11 +58,7 @@ #endif /* __mips32r2__ */ #endif /* __GNUC__ */ -#if defined(__MIPSEB__) -#define _BYTE_ORDER _BIG_ENDIAN -#else #define _BYTE_ORDER _LITTLE_ENDIAN -#endif #define __STRICT_ALIGNMENT #include #include diff --git a/libc/arch-mips64/include/machine/endian.h b/libc/arch-mips64/include/machine/endian.h index 41a9004f4..9270e9d9f 100644 --- a/libc/arch-mips64/include/machine/endian.h +++ b/libc/arch-mips64/include/machine/endian.h @@ -58,11 +58,7 @@ #endif /* __mips32r2__ */ #endif /* __GNUC__ */ -#if defined(__MIPSEB__) -#define _BYTE_ORDER _BIG_ENDIAN -#else #define _BYTE_ORDER _LITTLE_ENDIAN -#endif #define __STRICT_ALIGNMENT #include #include diff --git a/libc/arch-x86_64/include/machine/endian.h b/libc/arch-x86_64/include/machine/endian.h index 7889a374f..8a3b0c583 100644 --- a/libc/arch-x86_64/include/machine/endian.h +++ b/libc/arch-x86_64/include/machine/endian.h @@ -56,6 +56,7 @@ #endif /* __GNUC__ */ #define _BYTE_ORDER _LITTLE_ENDIAN +#include #include #endif /* _MACHINE_ENDIAN_H_ */