~ubuntu-branches/ubuntu/karmic/libsdl1.2/karmic

« back to all changes in this revision

Viewing changes to debian/patches/004_amd64_asm_fix.diff

  • Committer: Bazaar Package Importer
  • Author(s): Tollef Fog Heen
  • Date: 2005-01-17 21:47:56 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20050117214756-pi1l36nvzla0ojzr
Tags: 1.2.7+1.2.8cvs20041007-3ubuntu4
Apply patch from Debian BTS which makes libsdl1.2 build on amd64
again.  (ubuntu: #5031)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--- SDL-1.2.7+1.2.8cvs20041007.orig/include/SDL_endian.h        2004-02-26 14:26:07.000000000 +0000
 
2
+++ SDL-1.2.7+1.2.8cvs20041007/include/SDL_endian.h     2005-01-13 00:23:35.304661645 +0000
 
3
@@ -68,7 +68,7 @@
 
4
 #elif defined(__GNUC__) && defined(__x86_64__)
 
5
 static __inline__ Uint16 SDL_Swap16(Uint16 x)
 
6
 {
 
7
-       __asm__("xchgb %b0,%h0" : "=q" (x) :  "0" (x));
 
8
+       __asm__("xchgb %b0,%h0" : "=Q" (x) :  "0" (x));
 
9
        return x;
 
10
 }
 
11
 #elif defined(__GNUC__) && (defined(__powerpc__) || defined(__ppc__))