summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/macros.h
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2015-02-28 13:33:11 -0700
committerBrian Paul <brianp@vmware.com>2015-03-02 08:55:31 -0700
commit6f0e9c2e393ba17829e1338dc035c25f22a2718c (patch)
tree3830fc2bf2069861eaf54ddd92dfd06cb7fa822c /src/mesa/main/macros.h
parente1437d6c0a88906191b7531f4e941fc6b06e2e4a (diff)
downloadexternal_mesa3d-6f0e9c2e393ba17829e1338dc035c25f22a2718c.zip
external_mesa3d-6f0e9c2e393ba17829e1338dc035c25f22a2718c.tar.gz
external_mesa3d-6f0e9c2e393ba17829e1338dc035c25f22a2718c.tar.bz2
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@gmail.com>
Diffstat (limited to 'src/mesa/main/macros.h')
-rw-r--r--src/mesa/main/macros.h4
1 files changed, 0 insertions, 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