diff include/SDL_endian.h @ 4551:a5865d4b6495 SDL-1.2

RedHat patch: SDL-1.2.14-byteorder.patch
author Sam Lantinga <slouken@libsdl.org>
date Sun, 18 Jul 2010 11:22:47 -0700
parents 7a53f8efc017
children
line wrap: on
line diff
--- 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 <endian.h>
+#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 */