projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
356428d
)
build fix on big endian OpenBSD architectures.
author
Matthieu Herrb
<matthieu.herrb@laas.fr>
Sun, 21 Sep 2008 08:56:57 +0000
(10:56 +0200)
committer
Brian
<brianp@vmware.com>
Sun, 11 Jan 2009 23:44:52 +0000
(16:44 -0700)
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 55e0618ff80f90d39c469f8528cc281f94bed158..854751626d0241fdbfc395bd00a50acf8fe9877e 100644
(file)
--- a/
src/mesa/drivers/dri/mach64/mach64_context.h
+++ b/
src/mesa/drivers/dri/mach64/mach64_context.h
@@
-294,7
+294,13
@@
extern GLboolean mach64UnbindContext( __DRIcontextPrivate *driContextPriv );
#define LE32_OUT( x, y ) do { *(GLuint *)(x) = (y); } while (0)
#define LE32_OUT_FLOAT( x, y ) do { *(GLfloat *)(x) = (y); } while (0)
#else
+#ifndef __OpenBSD__
#include <byteswap.h>
+#else
+#include <machine/endian.h>
+#define bswap_32 bswap32
+#endif
+
#define LE32_IN( x ) bswap_32( *(GLuint *)(x) )
#define LE32_IN_FLOAT( x ) \
({ \