projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
33f6dc3
)
Big endian fixes.
author
Matthieu Herrb
<matthieu.herrb@laas.fr>
Sat, 11 Oct 2008 06:51:43 +0000
(08:51 +0200)
committer
Brian
<brianp@vmware.com>
Sun, 11 Jan 2009 23:44:54 +0000
(16:44 -0700)
src/mesa/main/glheader.h
patch
|
blob
|
history
diff --git
a/src/mesa/main/glheader.h
b/src/mesa/main/glheader.h
index 1d0f178dc4a1b898bfc15b826320cfd513cd9ec3..626806d35f6486bb5d140c96065a2e9e1bc8afda 100644
(file)
--- a/
src/mesa/main/glheader.h
+++ b/
src/mesa/main/glheader.h
@@
-146,7
+146,8
@@
#include <byteswap.h>
#define CPU_TO_LE32( x ) bswap_32( x )
#else /*__linux__*/
-#define CPU_TO_LE32( x ) ( x ) /* fix me for non-Linux big-endian! */
+#include <sys/endian.h>
+#define CPU_TO_LE32( x ) bswap32( x )
#endif /*__linux__*/
#define MESA_BIG_ENDIAN 1
#else