RedHat patch: SDL-1.2.14-byteorder.patch SDL-1.2
authorSam Lantinga <slouken@libsdl.org>
Sun, 18 Jul 2010 11:22:47 -0700
branchSDL-1.2
changeset 4551a5865d4b6495
parent 4547 963f939494a1
child 4553 a1af511bbbdd
RedHat patch: SDL-1.2.14-byteorder.patch
include/SDL_endian.h
     1.1 --- a/include/SDL_endian.h	Sun Jul 18 11:12:27 2010 -0700
     1.2 +++ b/include/SDL_endian.h	Sun Jul 18 11:22:47 2010 -0700
     1.3 @@ -39,6 +39,10 @@
     1.4  /*@}*/
     1.5  
     1.6  #ifndef SDL_BYTEORDER	/* Not defined in SDL_config.h? */
     1.7 +#ifdef __linux__
     1.8 +#include <endian.h>
     1.9 +#define SDL_BYTEORDER  __BYTE_ORDER
    1.10 +#else /* __linux __ */
    1.11  #if defined(__hppa__) || \
    1.12      defined(__m68k__) || defined(mc68000) || defined(_M_M68K) || \
    1.13      (defined(__MIPS__) && defined(__MISPEB__)) || \
    1.14 @@ -48,6 +52,7 @@
    1.15  #else
    1.16  #define SDL_BYTEORDER	SDL_LIL_ENDIAN
    1.17  #endif
    1.18 +#endif /* __linux __ */
    1.19  #endif /* !SDL_BYTEORDER */
    1.20  
    1.21