diff options
author | Dave Airlie <airliedfreedesktop.org> | 2004-06-07 12:51:05 +0000 |
---|---|---|
committer | Dave Airlie <airliedfreedesktop.org> | 2004-06-07 12:51:05 +0000 |
commit | f9b107d876327a115509e2740a75f15912176851 (patch) | |
tree | 3c56c7fa2be2d30b4ea79345fae715b491f8c032 /src | |
parent | 6fc70e87ed34b641957448c257405d5afdad1157 (diff) |
use the mesa defines
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/mach64/mach64_context.h | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/mesa/drivers/dri/mach64/mach64_context.h b/src/mesa/drivers/dri/mach64/mach64_context.h index 3d76de754ad..1f5f618804b 100644 --- a/src/mesa/drivers/dri/mach64/mach64_context.h +++ b/src/mesa/drivers/dri/mach64/mach64_context.h @@ -355,16 +355,7 @@ extern GLboolean mach64UnbindContext( __DRIcontextPrivate *driContextPriv ); /* ================================================================ * Byte ordering */ -#ifdef __linux__ -#include <endian.h> -#else -#include <sys/endian.h> -#define __BYTE_ORDER BYTE_ORDER -#define __LITTLE_ENDIAN LITTLE_ENDIAN -#define __BIG_ENDIAN BIG_ENDIAN -#endif - -#if __BYTE_ORDER == __LITTLE_ENDIAN +#if MESA_LITTLE_ENDIAN == 1 #define LE32_IN( x ) ( *(GLuint *)(x) ) #define LE32_IN_FLOAT( x ) ( *(GLfloat *)(x) ) #define LE32_OUT( x, y ) do { *(GLuint *)(x) = (y); } while (0) |