From 4b7604d1a0666924de053c174f1dda8e59a7df5d Mon Sep 17 00:00:00 2001 From: kloczek Date: Tue, 22 May 2001 00:15:53 +0000 Subject: [PATCH 1/1] - patche from rawhide with fix big/litle endian problems. Changed files: SDL-byteorder.patch -> 1.1 --- SDL-byteorder.patch | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 SDL-byteorder.patch diff --git a/SDL-byteorder.patch b/SDL-byteorder.patch new file mode 100644 index 0000000..86c5498 --- /dev/null +++ b/SDL-byteorder.patch @@ -0,0 +1,23 @@ +--- SDL-1.1.7/include/SDL_byteorder.h.foo Mon May 7 14:27:33 2001 ++++ SDL-1.1.7/include/SDL_byteorder.h Mon May 7 14:29:22 2001 +@@ -34,6 +34,12 @@ + #define SDL_LIL_ENDIAN 1234 + #define SDL_BIG_ENDIAN 4321 + ++ ++#ifdef __linux__ ++#include ++#define SDL_BYTEORDER __BYTE_ORDER ++#else ++ + /* Pardon the mess, I'm trying to determine the endianness of this host. + I'm doing it by preprocessor defines rather than some sort of configure + script so that application code can use this too. The "right" way would +@@ -46,5 +52,7 @@ + #else + #define SDL_BYTEORDER SDL_BIG_ENDIAN + #endif ++ ++#endif /* __linux __ */ + + #endif /* _SDL_byteorder_h */ -- 2.43.0