diff options
author | Rich Felker <dalias@aerifal.cx> | 2012-10-18 21:50:55 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2012-10-18 21:50:55 -0400 |
commit | 64251d8bbd42b50b6c2dae70d499f4bbfdac557e (patch) | |
tree | 337c0eab2b14225debc5cad615a56153613a5b5c /arch/mips | |
parent | 776251867d07cca2866908186ef245f72596ce75 (diff) | |
download | musl-64251d8bbd42b50b6c2dae70d499f4bbfdac557e.tar.gz musl-64251d8bbd42b50b6c2dae70d499f4bbfdac557e.tar.bz2 musl-64251d8bbd42b50b6c2dae70d499f4bbfdac557e.tar.xz musl-64251d8bbd42b50b6c2dae70d499f4bbfdac557e.zip |
better support for reverse-endian variants of arm/mips/microblaze
these macros are supported by more compilers
Diffstat (limited to 'arch/mips')
-rw-r--r-- | arch/mips/bits/endian.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 |