mapi: remove unneeded ARRAY_SIZE #define
authorBrian Paul <brianp@vmware.com>
Tue, 3 Mar 2015 16:40:40 +0000 (09:40 -0700)
committerBrian Paul <brianp@vmware.com>
Wed, 4 Mar 2015 15:33:48 +0000 (08:33 -0700)
include util/macros.h instead.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/mapi/Makefile.am
src/mapi/shared-glapi/SConscript
src/mapi/stub.c

index 90ba5715f13518f073bd1f9ce97eacec3c9658af..ef6f5eeab9217fd6fc3c9418797ded9be50dbae2 100644 (file)
@@ -46,6 +46,7 @@ AM_CPPFLAGS =                                                 \
        $(DEFINES)                                              \
        $(SELINUX_CFLAGS)                                       \
        -I$(top_srcdir)/include                                 \
+       -I$(top_srcdir)/src                                     \
        -I$(top_srcdir)/src/mapi                                \
        -I$(top_builddir)/src/mapi
 
index 07b3eff118d716f31b79a7b7730d2b63d52ee0dc..26bfe7e95290c39f1f7c7ac769a7c33f395c9fad 100644 (file)
@@ -37,6 +37,7 @@ def mapi_objects(env, printer, mode):
     cpppath = [
         header[0].dir,
         '#/include',
+        '#/src',
         '#/src/mapi',
     ]
     
index dfadbe1a5d312da1476c5bd74a7f9bb915299fab..953b6c75c3198536d3dcb0a8f9a81a862241860e 100644 (file)
 #include <string.h>
 #include <assert.h>
 
+#include "util/macros.h"
 #include "u_current.h"
 #include "u_thread.h"
 #include "entry.h"
 #include "stub.h"
 #include "table.h"
 
-#define ARRAY_SIZE(x) (sizeof(x)/sizeof((x)[0]))
 
 struct mapi_stub {
    const void *name;