better support for reverse-endian variants of arm/mips/microblaze
these macros are supported by more compilers
This commit is contained in:
parent
776251867d
commit
64251d8bbd
3 changed files with 12 additions and 0 deletions
|
|
@ -1 +1,5 @@
|
|||
#if __ARMEB__
|
||||
#define __BYTE_ORDER __BIG_ENDIAN
|
||||
#else
|
||||
#define __BYTE_ORDER __LITTLE_ENDIAN
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1 +1,5 @@
|
|||
#if __MICROBLAZEEL__
|
||||
#define __BYTE_ORDER __LITTLE_ENDIAN
|
||||
#else
|
||||
#define __BYTE_ORDER __BIG_ENDIAN
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1 +1,5 @@
|
|||
#if _MIPSEL || __MIPSEL || __MIPSEL__
|
||||
#define __BYTE_ORDER __LITTLE_ENDIAN
|
||||
#else
|
||||
#define __BYTE_ORDER __BIG_ENDIAN
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue