summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKeith Whitwell <keithw@vmware.com>2009-06-11 10:52:37 +0100
committerKeith Whitwell <keithw@vmware.com>2009-06-18 09:53:45 +0100
commit0491142152dcc61ebe0b46b05c94957e54c44bd9 (patch)
tree3966650f0502a9b1a497183aa4f24eebce8baa03 /src
parent39366ed995310c95d95e0c7a33fb0bec637a00b6 (diff)
mesa: protect Elements against multiple definitions
Mesa and gallium both have a definition of this macro
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/compiler.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/compiler.h b/src/mesa/main/compiler.h
index 93103fe878..e79bbc2ac5 100644
--- 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