projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6fc70e8
)
use the mesa defines
author
Dave Airlie
<airliedfreedesktop.org>
Mon, 7 Jun 2004 12:51:05 +0000
(12:51 +0000)
committer
Dave Airlie
<airliedfreedesktop.org>
Mon, 7 Jun 2004 12:51:05 +0000
(12:51 +0000)
src/mesa/drivers/dri/mach64/mach64_context.h
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/mach64/mach64_context.h
b/src/mesa/drivers/dri/mach64/mach64_context.h
index 3d76de754ad598c66ff8f7e952accc7359d79c09..1f5f618804bb331502bc80cfd4f5c98cdd181a17 100644
(file)
--- 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)