Mesa (master): mesa: remove extra definition of ARRAY_SIZE in src/mesa/ main/macros.h

Brian Paul brianp at kemper.freedesktop.org
Mon Mar 2 16:02:51 UTC 2015


Module: Mesa
Branch: master
Commit: 6f0e9c2e393ba17829e1338dc035c25f22a2718c
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=6f0e9c2e393ba17829e1338dc035c25f22a2718c

Author: Brian Paul <brianp at vmware.com>
Date:   Sat Feb 28 13:33:11 2015 -0700

mesa: remove extra definition of ARRAY_SIZE in src/mesa/main/macros.h

Already defined in src/util/macros.h

Reviewed-by: Matt Turner <mattst88 at gmail.com>

---

 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




More information about the mesa-commit mailing list