Big endian fixes.
authorMatthieu Herrb <matthieu.herrb@laas.fr>
Sat, 11 Oct 2008 06:51:43 +0000 (08:51 +0200)
committerBrian <brianp@vmware.com>
Sun, 11 Jan 2009 23:44:54 +0000 (16:44 -0700)
src/mesa/main/glheader.h

index 1d0f178dc4a1b898bfc15b826320cfd513cd9ec3..626806d35f6486bb5d140c96065a2e9e1bc8afda 100644 (file)
 #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