- detect correct endianess for older GCC versions on powerpc
This commit is contained in:
parent
c2f50239ef
commit
4af2e5420d
1 changed files with 8 additions and 0 deletions
|
@ -32,6 +32,14 @@
|
|||
#if (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__)
|
||||
#define PLATFORM_IS_BIGENDIAN 1
|
||||
#endif
|
||||
|
||||
#else
|
||||
|
||||
/* older versions of GCC have __BYTE_ORDER__ not defined! */
|
||||
#ifdef __PPC__
|
||||
#define PLATFORM_IS_BIGENDIAN 1
|
||||
#endif
|
||||
|
||||
#endif /* __BYTE_ORDER__ */
|
||||
#endif /* __GNUC__ */
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue