From a97277c506cb224d1b163a1a5f89c398e2911e22 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Thu, 26 Feb 2004 14:26:07 +0000 Subject: [PATCH] This works on MacOS X too. :) --- include/SDL_endian.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/SDL_endian.h b/include/SDL_endian.h index f9eb9456f..27b532b96 100644 --- a/include/SDL_endian.h +++ b/include/SDL_endian.h @@ -71,7 +71,7 @@ static __inline__ Uint16 SDL_Swap16(Uint16 x) __asm__("xchgb %b0,%h0" : "=q" (x) : "0" (x)); return x; } -#elif defined(__GNUC__) && defined(__powerpc__) +#elif defined(__GNUC__) && (defined(__powerpc__) || defined(__ppc__)) static __inline__ Uint16 SDL_Swap16(Uint16 x) { Uint16 result; @@ -97,7 +97,7 @@ static __inline__ Uint32 SDL_Swap32(Uint32 x) __asm__("bswapl %0" : "=r" (x) : "0" (x)); return x; } -#elif defined(__GNUC__) && defined(__powerpc__) +#elif defined(__GNUC__) && (defined(__powerpc__) || defined(__ppc__)) static __inline__ Uint32 SDL_Swap32(Uint32 x) { Uint32 result;