# HG changeset patch # User Sam Lantinga # Date 1279477367 25200 # Node ID a5865d4b64956cf7010d8d4c5fcc97d9d2efcbef # Parent 963f939494a1cdf5175285c5424bf8154cbacf74 RedHat patch: SDL-1.2.14-byteorder.patch diff -r 963f939494a1 -r a5865d4b6495 include/SDL_endian.h --- a/include/SDL_endian.h Sun Jul 18 11:12:27 2010 -0700 +++ b/include/SDL_endian.h Sun Jul 18 11:22:47 2010 -0700 @@ -39,6 +39,10 @@ /*@}*/ #ifndef SDL_BYTEORDER /* Not defined in SDL_config.h? */ +#ifdef __linux__ +#include +#define SDL_BYTEORDER __BYTE_ORDER +#else /* __linux __ */ #if defined(__hppa__) || \ defined(__m68k__) || defined(mc68000) || defined(_M_M68K) || \ (defined(__MIPS__) && defined(__MISPEB__)) || \ @@ -48,6 +52,7 @@ #else #define SDL_BYTEORDER SDL_LIL_ENDIAN #endif +#endif /* __linux __ */ #endif /* !SDL_BYTEORDER */