glx: use ARRAY_SIZE from macros.h
authorBrian Paul <brianp@vmware.com>
Tue, 3 Mar 2015 16:51:19 +0000 (09:51 -0700)
committerBrian Paul <brianp@vmware.com>
Wed, 4 Mar 2015 15:33:48 +0000 (08:33 -0700)
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/glx/Makefile.am
src/glx/SConscript
src/glx/glxclient.h

index 3ea1b30d7cfbde33ad70672ee229c44b46262cde..6e50e096fa2a48a428e425c263194aa730922570 100644 (file)
@@ -35,6 +35,7 @@ endif
 AM_CFLAGS = \
        -I$(top_srcdir)/include \
        -I$(top_srcdir)/include/GL/internal \
+       -I$(top_srcdir)/src \
        -I$(top_srcdir)/src/loader \
        -I$(top_srcdir)/src/mapi \
        -I$(top_srcdir)/src/mapi/glapi \
index 473c5ab6ac884f8bfa5548ce2e7df6406006c74e..b91c0bdd7585afb31c62ccc911378db991fb1d79 100644 (file)
@@ -11,6 +11,7 @@ env.Prepend(CPPPATH = [
        '.',           # the build/<platform>/glx/ directory
        '#include',
        '#include/GL/internal',
+       '#src/',
        '#src/loader',
        '#src/mesa',
        '#src/mapi',
index aaca989f1e32d39767dd21c8057c3efb662a3e71..a140c8708caaf8c4a1adf89345a757f12696258f 100644 (file)
 #if defined( HAVE_PTHREAD )
 # include <pthread.h>
 #endif
+#include "util/macros.h"
 
 #include "glxextensions.h"
 
-#define ARRAY_SIZE(a) (sizeof (a) / sizeof ((a)[0]))
 
 #define GLX_MAJOR_VERSION 1       /* current version numbers */
 #define GLX_MINOR_VERSION 4