summaryrefslogtreecommitdiff
path: root/src/mesa/main/texutil.c
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2002-06-05 16:48:54 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2002-06-05 16:48:54 +0000
commitaf2a1c1d679f870a8f30b17d3cf308807be3fb0e (patch)
tree33d9edf267a85fcda77be88e5150324051700a9d /src/mesa/main/texutil.c
parent28b03c6acb203bd4b523ea5ed39920bc52fc8fe5 (diff)
more big-endian tweaks
Diffstat (limited to 'src/mesa/main/texutil.c')
-rw-r--r--src/mesa/main/texutil.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/main/texutil.c b/src/mesa/main/texutil.c
index d840747a04..47d320cf07 100644
--- a/src/mesa/main/texutil.c
+++ b/src/mesa/main/texutil.c
@@ -1,8 +1,8 @@
-/* $Id: texutil.c,v 1.28 2002/06/03 16:06:34 brianp Exp $ */
+/* $Id: texutil.c,v 1.29 2002/06/05 16:48:54 brianp Exp $ */
/*
* Mesa 3-D graphics library
- * Version: 4.0.2
+ * Version: 4.0.3
*
* Copyright (C) 1999-2002 Brian Paul All Rights Reserved.
*
@@ -44,7 +44,7 @@
#define DEBUG_TEXUTIL 0
-#ifdef __BIG_ENDIAN
+#if defined(BYTE_ORDER) && defined(BIG_ENDIAN) && BYTE_ORDER == 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"
-#ifdef __BIG_ENDIAN
+#if defined(BYTE_ORDER) && defined(BIG_ENDIAN) && BYTE_ORDER == BIG_ENDIAN
#define CONVERT_TEXEL( dst, src ) \
{ const GLushort s = *(GLushort *)src; \