summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/texutil.c
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2002-06-12 00:52:50 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2002-06-12 00:52:50 +0000
commit1013e4650473ef0aceac7f3cd571b982ff249250 (patch)
treec87f4e1385cd453e5ac5e1596a7d10b0b3d0c56e /src/mesa/main/texutil.c
parent35883ceb9389f9e5b4be8233f2326367c6aecddb (diff)
downloadexternal_mesa3d-1013e4650473ef0aceac7f3cd571b982ff249250.zip
external_mesa3d-1013e4650473ef0aceac7f3cd571b982ff249250.tar.gz
external_mesa3d-1013e4650473ef0aceac7f3cd571b982ff249250.tar.bz2
Moved big/little endian code to glheader.h.
Define either MESA_BIG_ENDIAN or MESA_LITTLE_ENDIAN.
Diffstat (limited to 'src/mesa/main/texutil.c')
-rw-r--r--src/mesa/main/texutil.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/main/texutil.c b/src/mesa/main/texutil.c
index 47d320c..97e9c45 100644
--- a/src/mesa/main/texutil.c
+++ b/src/mesa/main/texutil.c
@@ -1,4 +1,4 @@
-/* $Id: texutil.c,v 1.29 2002/06/05 16:48:54 brianp Exp $ */
+/* $Id: texutil.c,v 1.30 2002/06/12 00:53:24 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -44,7 +44,7 @@
#define DEBUG_TEXUTIL 0
-#if defined(BYTE_ORDER) && defined(BIG_ENDIAN) && BYTE_ORDER == BIG_ENDIAN
+#ifdef MESA_BIG_ENDIAN
#define APPEND16( a, b ) ( (a) << 16 | (b) )
#else
#define APPEND16( a, b ) ( (a) | (b) << 16 )
@@ -417,7 +417,7 @@ CONVERT_ARGB4444( texsubimage3d )
#include "texutil_tmp.h"
-#if defined(BYTE_ORDER) && defined(BIG_ENDIAN) && BYTE_ORDER == BIG_ENDIAN
+#ifdef MESA_BIG_ENDIAN
#define CONVERT_TEXEL( dst, src ) \
{ const GLushort s = *(GLushort *)src; \