summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-libs/libsdl/files/1.2.8-amd64-endian.patch')
-rw-r--r--media-libs/libsdl/files/1.2.8-amd64-endian.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/media-libs/libsdl/files/1.2.8-amd64-endian.patch b/media-libs/libsdl/files/1.2.8-amd64-endian.patch
new file mode 100644
index 000000000000..dd5cc007ab49
--- /dev/null
+++ b/media-libs/libsdl/files/1.2.8-amd64-endian.patch
@@ -0,0 +1,26 @@
+Index: include/SDL_endian.h
+===================================================================
+RCS file: /home/sdlweb/libsdl.org/cvs/SDL12/include/SDL_endian.h,v
+retrieving revision 1.11
+retrieving revision 1.12
+diff -u -r1.11 -r1.12
+--- include/SDL_endian.h 27 Nov 2004 23:11:20 -0000 1.11
++++ include/SDL_endian.h 12 Jan 2005 06:04:47 -0000 1.12
+@@ -22,7 +22,7 @@
+
+ #ifdef SAVE_RCSID
+ static char rcsid =
+- "@(#) $Id: 1.2.8-amd64-endian.patch,v 1.1 2005/01/14 00:59:42 vapier Exp $";
++ "@(#) $Id: 1.2.8-amd64-endian.patch,v 1.1 2005/01/14 00:59:42 vapier Exp $";
+ #endif
+
+ /* Functions for reading and writing endian-specific values */
+@@ -68,7 +68,7 @@
+ #elif defined(__GNUC__) && defined(__x86_64__)
+ static __inline__ Uint16 SDL_Swap16(Uint16 x)
+ {
+- __asm__("xchgb %b0,%h0" : "=q" (x) : "0" (x));
++ __asm__("xchgb %b0,%h0" : "=Q" (x) : "0" (x));
+ return x;
+ }
+ #elif defined(__GNUC__) && (defined(__powerpc__) || defined(__ppc__))