This works on MacOS X too. :)
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40860
This commit is contained in:
parent
005ace8382
commit
90b89f2616
1 changed files with 2 additions and 2 deletions
|
@ -71,7 +71,7 @@ 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;
|
return x;
|
||||||
}
|
}
|
||||||
#elif defined(__GNUC__) && defined(__powerpc__)
|
#elif defined(__GNUC__) && (defined(__powerpc__) || defined(__ppc__))
|
||||||
static __inline__ Uint16 SDL_Swap16(Uint16 x)
|
static __inline__ Uint16 SDL_Swap16(Uint16 x)
|
||||||
{
|
{
|
||||||
Uint16 result;
|
Uint16 result;
|
||||||
|
@ -97,7 +97,7 @@ static __inline__ Uint32 SDL_Swap32(Uint32 x)
|
||||||
__asm__("bswapl %0" : "=r" (x) : "0" (x));
|
__asm__("bswapl %0" : "=r" (x) : "0" (x));
|
||||||
return x;
|
return x;
|
||||||
}
|
}
|
||||||
#elif defined(__GNUC__) && defined(__powerpc__)
|
#elif defined(__GNUC__) && (defined(__powerpc__) || defined(__ppc__))
|
||||||
static __inline__ Uint32 SDL_Swap32(Uint32 x)
|
static __inline__ Uint32 SDL_Swap32(Uint32 x)
|
||||||
{
|
{
|
||||||
Uint32 result;
|
Uint32 result;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue