This works on MacOS X too. :)
authorSam Lantinga <slouken@libsdl.org>
Thu, 26 Feb 2004 14:26:07 +0000
changeset 8596b28c91bf3d2
parent 858 5db50aa5bf08
child 860 2bac79e27868
This works on MacOS X too. :)
include/SDL_endian.h
     1.1 --- a/include/SDL_endian.h	Thu Feb 26 13:45:22 2004 +0000
     1.2 +++ b/include/SDL_endian.h	Thu Feb 26 14:26:07 2004 +0000
     1.3 @@ -71,7 +71,7 @@
     1.4  	__asm__("xchgb %b0,%h0" : "=q" (x) :  "0" (x));
     1.5  	return x;
     1.6  }
     1.7 -#elif defined(__GNUC__) && defined(__powerpc__)
     1.8 +#elif defined(__GNUC__) && (defined(__powerpc__) || defined(__ppc__))
     1.9  static __inline__ Uint16 SDL_Swap16(Uint16 x)
    1.10  {
    1.11  	Uint16 result;
    1.12 @@ -97,7 +97,7 @@
    1.13  	__asm__("bswapl %0" : "=r" (x) : "0" (x));
    1.14  	return x;
    1.15  }
    1.16 -#elif defined(__GNUC__) && defined(__powerpc__)
    1.17 +#elif defined(__GNUC__) && (defined(__powerpc__) || defined(__ppc__))
    1.18  static __inline__ Uint32 SDL_Swap32(Uint32 x)
    1.19  {
    1.20  	Uint32 result;