From: Chia-I Wu Date: Fri, 24 Dec 2010 09:26:08 +0000 (+0800) Subject: mapi: Move mapi_func typedef to entry.h. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a91a337a7dce11b1904387072e90bdc8b9366638;p=mesa.git mapi: Move mapi_func typedef to entry.h. Make it clear that entry.h does not depend on stub.h. --- diff --git a/src/mapi/mapi/entry.h b/src/mapi/mapi/entry.h index 4d7e1f6d16e..9df81000470 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 e72e530e290..b2b6f1839c6 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 7c760201a97..4e16e8d0da2 100644 --- a/src/mapi/mapi/table.c +++ b/src/mapi/mapi/table.c @@ -29,7 +29,6 @@ #include #include -#include "stub.h" #include "table.h" static void diff --git a/src/mapi/mapi/table.h b/src/mapi/mapi/table.h index c93ebe75cf9..d84523f7777 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"