projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e1437d6
)
mesa: remove extra definition of ARRAY_SIZE in src/mesa/main/macros.h
author
Brian Paul
<brianp@vmware.com>
Sat, 28 Feb 2015 20:33:11 +0000
(13:33 -0700)
committer
Brian Paul
<brianp@vmware.com>
Mon, 2 Mar 2015 15:55:31 +0000
(08:55 -0700)
Already defined in src/util/macros.h
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/main/macros.h
patch
|
blob
|
history
diff --git
a/src/mesa/main/macros.h
b/src/mesa/main/macros.h
index
da5e8e8
..
2d7a6a1
100644
(file)
--- 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