changeset 4552:116f05eb67c7

RedHat patch: SDL-1.2.14-byteorder.patch
author Sam Lantinga <slouken@libsdl.org>
date Sun, 18 Jul 2010 11:23:34 -0700
parents e4e462f591d7
children 9e73d17638d3
files include/SDL_endian.h
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/include/SDL_endian.h	Sun Jul 18 11:18:36 2010 -0700
+++ b/include/SDL_endian.h	Sun Jul 18 11:23:34 2010 -0700
@@ -40,6 +40,10 @@
 /*@}*/
 
 #ifndef SDL_BYTEORDER           /* Not defined in SDL_config.h? */
+#ifdef __linux__
+#include <endian.h>
+#define SDL_BYTEORDER  __BYTE_ORDER
+#else /* __linux __ */
 #if defined(__hppa__) || \
     defined(__m68k__) || defined(mc68000) || defined(_M_M68K) || \
     (defined(__MIPS__) && defined(__MISPEB__)) || \
@@ -49,6 +53,7 @@
 #else
 #define SDL_BYTEORDER	SDL_LIL_ENDIAN
 #endif
+#endif /* __linux __ */
 #endif /* !SDL_BYTEORDER */