diff options
author | Chia-I Wu <olv@lunarg.com> | 2010-08-24 15:51:57 +0800 |
---|---|---|
committer | Chia-I Wu <olv@lunarg.com> | 2011-01-20 17:15:50 +0800 |
commit | 96c52d16c1716b8974b5421342f53f36cb80c10f (patch) | |
tree | 7f1ff34df0bb3b53b766e7f5f14b4240e132698e /src/mapi/mapi/entry.c | |
parent | 6fc152f660ed995fb6c785b9e8e925bb1640532a (diff) |
mapi: u_current_table may be renamed.
When MAPI_MODE_GLAPI is defined, u_current_table is renamed to
_glapi_Dispatch or _glapi_tls_Dispatch. The ASM dispatchers should not
use hardcoded name.
Diffstat (limited to 'src/mapi/mapi/entry.c')
-rw-r--r-- | src/mapi/mapi/entry.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mapi/mapi/entry.c b/src/mapi/mapi/entry.c index 69b6134bd2..faeda83519 100644 --- a/src/mapi/mapi/entry.c +++ b/src/mapi/mapi/entry.c @@ -27,6 +27,11 @@ */ #include "entry.h" +#include "u_current.h" +#include "u_macros.h" + +/* define macros for use by assembly dispatchers */ +#define ENTRY_CURRENT_TABLE U_STRINGIFY(u_current_table) #if defined(USE_X86_ASM) && defined(__GNUC__) # ifdef GLX_USE_TLS @@ -39,7 +44,6 @@ #else #include <stdlib.h> -#include "u_current.h" /* C version of the public entries */ #define MAPI_TMP_DEFINES |