diff options
author | Keith Whitwell <keithw@vmware.com> | 2009-06-11 10:52:37 +0100 |
---|---|---|
committer | Keith Whitwell <keithw@vmware.com> | 2009-06-18 09:53:45 +0100 |
commit | 0491142152dcc61ebe0b46b05c94957e54c44bd9 (patch) | |
tree | 3966650f0502a9b1a497183aa4f24eebce8baa03 | |
parent | 39366ed995310c95d95e0c7a33fb0bec637a00b6 (diff) |
mesa: protect Elements against multiple definitions
Mesa and gallium both have a definition of this macro
-rw-r--r-- | src/mesa/main/compiler.h | 4 |
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 |