From 64251d8bbd42b50b6c2dae70d499f4bbfdac557e Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Thu, 18 Oct 2012 21:50:55 -0400 Subject: better support for reverse-endian variants of arm/mips/microblaze these macros are supported by more compilers --- arch/mips/bits/endian.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'arch/mips/bits') 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 -- cgit v1.2.1