mesa: protect Elements against multiple definitions
authorKeith Whitwell <keithw@vmware.com>
Thu, 11 Jun 2009 09:52:37 +0000 (10:52 +0100)
committerKeith 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

index 93103fe..e79bbc2 100644 (file)
@@ -468,9 +468,9 @@ do {                                                                    \
 #endif
 
 
-
+#ifndef Elements
 #define Elements(x) (sizeof(x)/sizeof(*(x)))
-
+#endif