Mesa (mesa_7_2_branch): Big endian fixes.

Brian Paul brianp at kemper.freedesktop.org
Sun Jan 11 23:57:04 UTC 2009


Module: Mesa
Branch: mesa_7_2_branch
Commit: 8f8f0637488a4d75a5e9dc029b22b1c1656938d7
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8f8f0637488a4d75a5e9dc029b22b1c1656938d7

Author: Matthieu Herrb <matthieu.herrb at laas.fr>
Date:   Sat Oct 11 08:51:43 2008 +0200

Big endian fixes.

---

 src/mesa/main/glheader.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/mesa/main/glheader.h b/src/mesa/main/glheader.h
index 6f3b208..8ba762c 100644
--- a/src/mesa/main/glheader.h
+++ b/src/mesa/main/glheader.h
@@ -155,7 +155,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




More information about the mesa-commit mailing list