summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2015-03-03 17:15:05 -0700
committerBrian Paul <brianp@vmware.com>2015-03-04 08:33:48 -0700
commit8aa9191878a5608fc6e4e8c72bea1d25cd821dec (patch)
treea94f55090881e4fb312acea74c03e37966b5c79b
parent4ab713423ffbdb885910f0c0efcabb594e55d227 (diff)
mapi: remove u_compiler.h
Just include c99_compat.h or util/macros.h where needed. Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
-rw-r--r--src/mapi/Makefile.sources1
-rw-r--r--src/mapi/entry.h1
-rw-r--r--src/mapi/glapi/glapi.h1
-rw-r--r--src/mapi/mapi.h2
-rw-r--r--src/mapi/table.h4
-rw-r--r--src/mapi/u_compiler.h7
-rw-r--r--src/mapi/u_current.h6
-rw-r--r--src/mapi/u_execmem.c2
-rw-r--r--src/mapi/u_thread.h2
9 files changed, 10 insertions, 16 deletions
diff --git a/src/mapi/Makefile.sources b/src/mapi/Makefile.sources
index 41dbb24c83..a1796626d5 100644
--- a/src/mapi/Makefile.sources
+++ b/src/mapi/Makefile.sources
@@ -15,7 +15,6 @@
# this mode, compile MAPI_BRIDGE_FILES with MAPI_MODE_BRIDGE defined.
MAPI_UTIL_FILES = \
- u_compiler.h \
u_current.c \
u_current.h \
u_execmem.c \
diff --git a/src/mapi/entry.h b/src/mapi/entry.h
index dba1c06a39..7c8137c0ca 100644
--- a/src/mapi/entry.h
+++ b/src/mapi/entry.h
@@ -28,7 +28,6 @@
#ifndef _ENTRY_H_
#define _ENTRY_H_
-#include "u_compiler.h"
typedef void (*mapi_func)(void);
diff --git a/src/mapi/glapi/glapi.h b/src/mapi/glapi/glapi.h
index e2fa9252f7..e3f76b47c1 100644
--- a/src/mapi/glapi/glapi.h
+++ b/src/mapi/glapi/glapi.h
@@ -44,6 +44,7 @@
#ifndef _GLAPI_H
#define _GLAPI_H
+#include "util/macros.h"
#include "u_thread.h"
diff --git a/src/mapi/mapi.h b/src/mapi/mapi.h
index 2aa8d9fe0e..9adf8b5a37 100644
--- a/src/mapi/mapi.h
+++ b/src/mapi/mapi.h
@@ -28,8 +28,6 @@
#ifndef _MAPI_H_
#define _MAPI_H_
-#include "u_compiler.h"
-
#ifdef _WIN32
#ifdef MAPI_DLL_EXPORTS
#define MAPI_EXPORT __declspec(dllexport)
diff --git a/src/mapi/table.h b/src/mapi/table.h
index 8180db9bc1..e2d6ef03d7 100644
--- a/src/mapi/table.h
+++ b/src/mapi/table.h
@@ -28,7 +28,7 @@
#ifndef _TABLE_H_
#define _TABLE_H_
-#include "u_compiler.h"
+#include "c99_compat.h"
#include "entry.h"
#define MAPI_TMP_TABLE
@@ -37,6 +37,8 @@
#define MAPI_TABLE_NUM_SLOTS (MAPI_TABLE_NUM_STATIC + MAPI_TABLE_NUM_DYNAMIC)
#define MAPI_TABLE_SIZE (MAPI_TABLE_NUM_SLOTS * sizeof(mapi_func))
+struct mapi_table;
+
extern const mapi_func table_noop_array[];
/**
diff --git a/src/mapi/u_compiler.h b/src/mapi/u_compiler.h
deleted file mode 100644
index cd80f68114..0000000000
--- a/src/mapi/u_compiler.h
+++ /dev/null
@@ -1,7 +0,0 @@
-#ifndef _U_COMPILER_H_
-#define _U_COMPILER_H_
-
-#include "c99_compat.h" /* inline, __func__, etc. */
-#include "util/macros.h"
-
-#endif /* _U_COMPILER_H_ */
diff --git a/src/mapi/u_current.h b/src/mapi/u_current.h
index 252e696c57..ea4f817234 100644
--- a/src/mapi/u_current.h
+++ b/src/mapi/u_current.h
@@ -1,6 +1,10 @@
#ifndef _U_CURRENT_H_
#define _U_CURRENT_H_
+#include "c99_compat.h"
+#include "util/macros.h"
+
+
#if defined(MAPI_MODE_UTIL) || defined(MAPI_MODE_GLAPI) || \
defined(MAPI_MODE_BRIDGE)
@@ -24,8 +28,6 @@
#else /* MAPI_MODE_UTIL || MAPI_MODE_GLAPI || MAPI_MODE_BRIDGE */
-#include "u_compiler.h"
-
struct mapi_table;
#ifdef GLX_USE_TLS
diff --git a/src/mapi/u_execmem.c b/src/mapi/u_execmem.c
index ac1cae093d..ad6427b3e4 100644
--- a/src/mapi/u_execmem.c
+++ b/src/mapi/u_execmem.c
@@ -32,7 +32,7 @@
*/
-#include "u_compiler.h"
+#include "c99_compat.h"
#include "u_thread.h"
#include "u_execmem.h"
diff --git a/src/mapi/u_thread.h b/src/mapi/u_thread.h
index 3cd07b5c4f..4dd95150d3 100644
--- a/src/mapi/u_thread.h
+++ b/src/mapi/u_thread.h
@@ -44,7 +44,7 @@
#include <stdio.h>
#include <stdlib.h>
-#include "u_compiler.h"
+#include "c99_compat.h"
#include "c11/threads.h"