summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu.herrb@laas.fr>2008-10-11 08:51:43 +0200
committerBrian <brianp@vmware.com>2009-01-11 16:44:54 -0700
commit0f0922f93cbe997a95575c955ab1544bb5cd1d7d (patch)
tree7009090d7fe5fddcc2a37f959542910876a74264
parent33f6dc3c334cc065d7c98d0481be19b208e1837d (diff)
Big endian fixes.
-rw-r--r--src/mesa/main/glheader.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/main/glheader.h b/src/mesa/main/glheader.h
index 1d0f178dc4..626806d35f 100644
--- a/src/mesa/main/glheader.h
+++ b/src/mesa/main/glheader.h
@@ -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