>From 17663a363be40cde7b2547c8c8b21ef3753a8254 Mon Sep 17 00:00:00 2001 From: Matthieu Herrb <matthieu.he...@laas.fr> Date: Sat, 11 Oct 2008 08:51:43 +0200 Subject: [PATCH] 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 -- 1.6.0.5 ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Mesa3d-dev mailing list Mesa3d-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mesa3d-dev