--- pjproject-2.4/pjlib/include/pj/config.h.orig 2015-05-05 11:41:56.300102158 +0100 +++ pjproject-2.4/pjlib/include/pj/config.h 2015-05-05 11:44:45.400282720 +0100 @@ -287,7 +287,15 @@ # define PJ_M_NAME "powerpc" # define PJ_HAS_PENTIUM 0 # if !PJ_IS_LITTLE_ENDIAN && !PJ_IS_BIG_ENDIAN -# error Endianness must be declared for this processor +# if (defined(__BYTE_ORDER__) && __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) +# define PJ_IS_LITTLE_ENDIAN 1 +# define PJ_IS_BIG_ENDIAN 0 +# elif (defined(__BYTE_ORDER__) && __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__) +# define PJ_IS_LITTLE_ENDIAN 0 +# define PJ_IS_BIG_ENDIAN 1 +# else +# error Endianness must be declared for this processor +# endif # endif #elif defined (PJ_M_NIOS2) || defined(__nios2) || defined(__nios2__) || \