glx: use ARRAY_SIZE from macros.h

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
This commit is contained in:
Brian Paul 2015-03-03 09:51:19 -07:00
parent 6e836d2c86
commit 0339e7dbda
3 changed files with 3 additions and 1 deletions

View 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 \

View File

@ -11,6 +11,7 @@ env.Prepend(CPPPATH = [
'.', # the build/<platform>/glx/ directory
'#include',
'#include/GL/internal',
'#src/',
'#src/loader',
'#src/mesa',
'#src/mapi',

View File

@ -56,10 +56,10 @@
#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