From: Keith Whitwell Date: Thu, 11 Jun 2009 09:52:37 +0000 (+0100) Subject: mesa: protect Elements against multiple definitions X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0491142152dcc61ebe0b46b05c94957e54c44bd9;p=mesa.git mesa: protect Elements against multiple definitions Mesa and gallium both have a definition of this macro --- diff --git a/src/mesa/main/compiler.h b/src/mesa/main/compiler.h index 93103fe878d..e79bbc2ac5f 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