diff include/SDL_endian.h @ 1026:0f3aa6ab3341

Select patches included from The NetBSD Package Collection (www.pkgsrc.org)
author Sam Lantinga <slouken@libsdl.org>
date Wed, 12 Jan 2005 06:04:48 +0000
parents c4e5473672b6
children 3cf036d8861f
line wrap: on
line diff
--- a/include/SDL_endian.h	Sat Jan 08 23:13:01 2005 +0000
+++ b/include/SDL_endian.h	Wed Jan 12 06:04:48 2005 +0000
@@ -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__))