projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ffbb81
)
make endian code work on BSD
author
Dave Airlie
<airliedfreedesktop.org>
Mon, 7 Jun 2004 00:29:40 +0000
(
00:29
+0000)
committer
Dave Airlie
<airliedfreedesktop.org>
Mon, 7 Jun 2004 00:29:40 +0000
(
00:29
+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 e61083f821b6359dab35e856836ffb1e84977433..3d76de754ad598c66ff8f7e952accc7359d79c09 100644
(file)
--- a/
src/mesa/drivers/dri/mach64/mach64_context.h
+++ b/
src/mesa/drivers/dri/mach64/mach64_context.h
@@
-355,7
+355,14
@@
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
#define LE32_IN( x ) ( *(GLuint *)(x) )