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 1d0f178..626806d 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