]> git.pld-linux.org Git - packages/crossmingw32-SDL.git/commitdiff
- patche from rawhide with fix big/litle endian problems. SDL-1_2_0-3 SDL-1_2_1-1 SDL-1_2_1-2
authorkloczek <kloczek@pld-linux.org>
Tue, 22 May 2001 00:15:53 +0000 (00:15 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    SDL-byteorder.patch -> 1.1

SDL-byteorder.patch [new file with mode: 0644]

diff --git a/SDL-byteorder.patch b/SDL-byteorder.patch
new file mode 100644 (file)
index 0000000..86c5498
--- /dev/null
@@ -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 <endian.h>
++#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 */
This page took 0.065379 seconds and 4 git commands to generate.