[Mesa-dev] [PATCH] mesa: remove extra definition of ARRAY_SIZE in src/mesa/main/macros.h

Brian Paul brianp at vmware.com
Sat Feb 28 12:35:32 PST 2015


Already defined in src/util/macros.h
---
 src/mesa/main/macros.h | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/src/mesa/main/macros.h b/src/mesa/main/macros.h
index da5e8e8..2d7a6a1 100644
--- a/src/mesa/main/macros.h
+++ b/src/mesa/main/macros.h
@@ -803,10 +803,6 @@ DIFFERENT_SIGNS(GLfloat x, GLfloat y)
 #define ENUM_TO_DOUBLE(E)  ((GLdouble)(GLint)(E))
 #define ENUM_TO_BOOLEAN(E) ((E) ? GL_TRUE : GL_FALSE)
 
-/* Compute the size of an array */
-#ifndef ARRAY_SIZE
-#  define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0]))
-#endif
 
 /* Stringify */
 #define STRINGIFY(x) #x
-- 
1.9.1



More information about the mesa-dev mailing list