projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
991c1f0
)
gallium: Factor out unknown endianness detection.
author
Michel Dänzer
<daenzer@vmware.com>
Mon, 9 May 2011 10:29:47 +0000
(12:29 +0200)
committer
Michel Dänzer
<daenzer@vmware.com>
Mon, 9 May 2011 10:29:47 +0000
(12:29 +0200)
src/gallium/include/pipe/p_config.h
patch
|
blob
|
history
diff --git
a/src/gallium/include/pipe/p_config.h
b/src/gallium/include/pipe/p_config.h
index a0aa2df8de350a891374ad01c9499e3c8d5877dd..1818c8b9e9af1cbfddea25f9e4c9fbfaa547d717 100644
(file)
--- a/
src/gallium/include/pipe/p_config.h
+++ b/
src/gallium/include/pipe/p_config.h
@@
-126,12
+126,14
@@
#define PIPE_ARCH_LITTLE_ENDIAN
#elif defined(PIPE_ARCH_PPC) || defined(PIPE_ARCH_PPC_64)
#define PIPE_ARCH_BIG_ENDIAN
-#else
-#error Unknown Endianness
#endif
#endif
+#if !defined(PIPE_ARCH_LITTLE_ENDIAN) && !defined(PIPE_ARCH_BIG_ENDIAN)
+#error Unknown Endianness
+#endif
+
#if !defined(PIPE_OS_EMBEDDED)
/*