- detect correct endianess for older GCC versions on powerpc

This commit is contained in:
mzillgit 2015-05-22 11:16:31 +00:00
parent c2f50239ef
commit 4af2e5420d

View file

@ -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