mesa: #ifdef out more remap_table related code when disabled.
authorJosé Fonseca <jfonseca@vmware.com>
Sun, 2 May 2010 15:10:40 +0000 (16:10 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Sun, 2 May 2010 15:10:40 +0000 (16:10 +0100)
Seems to get everything building again here.

src/mesa/main/api_exec.c
src/mesa/main/remap.c

index 7b6ac63fac4c753d44ae58cf242c7b9952a81bc6..f838561aef3b9d6d9d96a92cba6b9d8ddbf66a09 100644 (file)
 #endif
 #include "main/dispatch.h"
 
+#ifdef _GLAPI_USE_REMAP_TABLE
+
 #define need_MESA_remap_table
 #include "main/remap.h"
 #include "main/remap_helper.h"
@@ -142,6 +144,8 @@ _mesa_init_remap_table(void)
                             MESA_remap_table_functions);
 }
 
+#endif /* _GLAPI_USE_REMAP_TABLE */
+
 
 /**
  * Initialize a dispatch table with pointers to Mesa's immediate-mode
index 38ddc0c1dd7dc8d754a31aab922b8da131f56dd0..2b0d054bf29f5099512de13667b96924e4d62fbb 100644 (file)
  * a dynamic entry, or the corresponding static entry, in glapi.
  */
 
+#if FEATURE_remap_table
+
 #include "remap.h"
 #include "imports.h"
 #include "glapi/glapi.h"
 
-#if FEATURE_remap_table
-
-
 #define ARRAY_SIZE(a) (sizeof (a) / sizeof ((a)[0]))
 #define MAX_ENTRY_POINTS 16