Skip to content

Commit

Permalink
This works on MacOS X too. :)
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Feb 26, 2004
1 parent 9337e77 commit a97277c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/SDL_endian.h
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit a97277c

Please sign in to comment.