From e17ccd7bb6cb0076d5e60922fa9c56907f9e5f16 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sun, 18 Jul 2010 11:22:47 -0700 Subject: [PATCH] RedHat patch: SDL-1.2.14-byteorder.patch --- include/SDL_endian.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/SDL_endian.h b/include/SDL_endian.h index aee106a92..aa7d22ff3 100644 --- a/include/SDL_endian.h +++ b/include/SDL_endian.h @@ -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 */