projects
/
profile
/
ivi
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
39366ed
)
mesa: protect Elements against multiple definitions
author
Keith Whitwell
<keithw@vmware.com>
Thu, 11 Jun 2009 09:52:37 +0000
(10:52 +0100)
committer
Keith Whitwell
<keithw@vmware.com>
Thu, 18 Jun 2009 08:53:45 +0000
(09:53 +0100)
Mesa and gallium both have a definition of this macro
src/mesa/main/compiler.h
patch
|
blob
|
history
diff --git
a/src/mesa/main/compiler.h
b/src/mesa/main/compiler.h
index
93103fe
..
e79bbc2
100644
(file)
--- a/
src/mesa/main/compiler.h
+++ b/
src/mesa/main/compiler.h
@@
-468,9
+468,9
@@
do { \
#endif
-
+#ifndef Elements
#define Elements(x) (sizeof(x)/sizeof(*(x)))
-
+#endif