diff options
author | Chia-I Wu <olv@lunarg.com> | 2010-12-24 17:26:08 +0800 |
---|---|---|
committer | Chia-I Wu <olv@lunarg.com> | 2010-12-24 17:33:50 +0800 |
commit | a91a337a7dce11b1904387072e90bdc8b9366638 (patch) | |
tree | 9536696137bf917095b4afd5ab1e4c5718d60218 /src/mapi | |
parent | a33e9f049db5b7c9f3d801d3ffa7312e9a5d9637 (diff) |
mapi: Move mapi_func typedef to entry.h.
Make it clear that entry.h does not depend on stub.h.
Diffstat (limited to 'src/mapi')
-rw-r--r-- | src/mapi/mapi/entry.h | 3 | ||||
-rw-r--r-- | src/mapi/mapi/stub.h | 2 | ||||
-rw-r--r-- | src/mapi/mapi/table.c | 1 | ||||
-rw-r--r-- | src/mapi/mapi/table.h | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/src/mapi/mapi/entry.h b/src/mapi/mapi/entry.h index 4d7e1f6d16..9df8100047 100644 --- a/src/mapi/mapi/entry.h +++ b/src/mapi/mapi/entry.h @@ -30,7 +30,8 @@ #define _ENTRY_H_ #include "u_compiler.h" -#include "stub.h" + +typedef void (*mapi_func)(void); void entry_patch_public(void); diff --git a/src/mapi/mapi/stub.h b/src/mapi/mapi/stub.h index e72e530e29..b2b6f1839c 100644 --- a/src/mapi/mapi/stub.h +++ b/src/mapi/mapi/stub.h @@ -29,7 +29,7 @@ #ifndef _STUB_H_ #define _STUB_H_ -typedef void (*mapi_func)(void); +#include "entry.h" struct mapi_stub; diff --git a/src/mapi/mapi/table.c b/src/mapi/mapi/table.c index 7c760201a9..4e16e8d0da 100644 --- a/src/mapi/mapi/table.c +++ b/src/mapi/mapi/table.c @@ -29,7 +29,6 @@ #include <stdlib.h> #include <stdio.h> -#include "stub.h" #include "table.h" static void diff --git a/src/mapi/mapi/table.h b/src/mapi/mapi/table.h index c93ebe75cf..d84523f777 100644 --- a/src/mapi/mapi/table.h +++ b/src/mapi/mapi/table.h @@ -30,7 +30,7 @@ #define _TABLE_H_ #include "u_compiler.h" -#include "stub.h" +#include "entry.h" #define MAPI_TMP_TABLE #include "mapi_tmp.h" |