From: Rich Felker Date: Fri, 19 Oct 2012 01:50:55 +0000 (-0400) Subject: better support for reverse-endian variants of arm/mips/microblaze X-Git-Tag: v0.9.7~26 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=64251d8bbd42b50b6c2dae70d499f4bbfdac557e;p=oweals%2Fmusl.git better support for reverse-endian variants of arm/mips/microblaze these macros are supported by more compilers --- diff --git a/arch/arm/bits/endian.h b/arch/arm/bits/endian.h index 172c338f..5953724a 100644 --- a/arch/arm/bits/endian.h +++ b/arch/arm/bits/endian.h @@ -1 +1,5 @@ +#if __ARMEB__ +#define __BYTE_ORDER __BIG_ENDIAN +#else #define __BYTE_ORDER __LITTLE_ENDIAN +#endif diff --git a/arch/microblaze/bits/endian.h b/arch/microblaze/bits/endian.h index ef074b77..d82a92ac 100644 --- a/arch/microblaze/bits/endian.h +++ b/arch/microblaze/bits/endian.h @@ -1 +1,5 @@ +#if __MICROBLAZEEL__ +#define __BYTE_ORDER __LITTLE_ENDIAN +#else #define __BYTE_ORDER __BIG_ENDIAN +#endif diff --git a/arch/mips/bits/endian.h b/arch/mips/bits/endian.h index ef074b77..5399dcb5 100644 --- a/arch/mips/bits/endian.h +++ b/arch/mips/bits/endian.h @@ -1 +1,5 @@ +#if _MIPSEL || __MIPSEL || __MIPSEL__ +#define __BYTE_ORDER __LITTLE_ENDIAN +#else #define __BYTE_ORDER __BIG_ENDIAN +#endif