Mesa (7.8-gles): egl: remove duplicate ARRAY_SIZE() macro declaration

Kristian Høgsberg krh at kemper.freedesktop.org
Fri May 14 19:23:46 UTC 2010


Module: Mesa
Branch: 7.8-gles
Commit: cf83f0b8123f34724ade81d519eaa785800f2037
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=cf83f0b8123f34724ade81d519eaa785800f2037

Author: Brian Paul <brianp at vmware.com>
Date:   Fri May 14 10:54:59 2010 -0600

egl: remove duplicate ARRAY_SIZE() macro declaration

---

 src/egl/drivers/glx/egl_glx.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/egl/drivers/glx/egl_glx.c b/src/egl/drivers/glx/egl_glx.c
index 3cbfebe..e08ef5f 100644
--- a/src/egl/drivers/glx/egl_glx.c
+++ b/src/egl/drivers/glx/egl_glx.c
@@ -41,6 +41,7 @@
 #include "eglconfigutil.h"
 #include "eglconfig.h"
 #include "eglcontext.h"
+#include "egldefines.h"
 #include "egldisplay.h"
 #include "egldriver.h"
 #include "eglcurrent.h"
@@ -48,7 +49,6 @@
 #include "eglsurface.h"
 
 #define CALLOC_STRUCT(T)   (struct T *) calloc(1, sizeof(struct T))
-#define ARRAY_SIZE(a)      (sizeof(a) / sizeof(a[0]))
 
 #ifndef GLX_VERSION_1_4
 #error "GL/glx.h must be equal to or greater than GLX 1.4"




More information about the mesa-commit mailing list