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>
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user