Big endian fixes.

This commit is contained in:
Matthieu Herrb 2008-10-11 08:51:43 +02:00 committed by Brian
parent 33f6dc3c33
commit 0f0922f93c

View file

@ -146,7 +146,8 @@
#include <byteswap.h>
#define CPU_TO_LE32( x ) bswap_32( x )
#else /*__linux__*/
#define CPU_TO_LE32( x ) ( x ) /* fix me for non-Linux big-endian! */
#include <sys/endian.h>
#define CPU_TO_LE32( x ) bswap32( x )
#endif /*__linux__*/
#define MESA_BIG_ENDIAN 1
#else