mesa: define 32bit byteswap for AIX.
Fixes `xlib' driver build on AIX. Signed-off-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
@@ -235,7 +235,12 @@ extern "C" {
|
||||
#elif defined(__APPLE__)
|
||||
#include <CoreFoundation/CFByteOrder.h>
|
||||
#define CPU_TO_LE32( x ) CFSwapInt32HostToLittle( x )
|
||||
#else /*__linux__ __APPLE__*/
|
||||
#elif defined(_AIX)
|
||||
#define CPU_TO_LE32( x ) x = ((x & 0x000000ff) << 24) | \
|
||||
((x & 0x0000ff00) << 8) | \
|
||||
((x & 0x00ff0000) >> 8) | \
|
||||
((x & 0xff000000) >> 24);
|
||||
#else /*__linux__ */
|
||||
#include <sys/endian.h>
|
||||
#define CPU_TO_LE32( x ) bswap32( x )
|
||||
#endif /*__linux__*/
|
||||
|
||||
Reference in New Issue
Block a user