mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
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:
parent
e1437d6c0a
commit
6f0e9c2e39
1 changed files with 0 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue