diff --git a/src/hal/inc/platform_endian.h b/src/hal/inc/platform_endian.h index 224e449..9bc7a5a 100644 --- a/src/hal/inc/platform_endian.h +++ b/src/hal/inc/platform_endian.h @@ -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