summaryrefslogtreecommitdiff
path: root/src/mapi/mapi/u_current.h
diff options
context:
space:
mode:
authorChia-I Wu <olv@lunarg.com>2010-12-11 03:33:42 +0800
committerChia-I Wu <olv@lunarg.com>2011-01-20 17:15:50 +0800
commit6fc152f660ed995fb6c785b9e8e925bb1640532a (patch)
tree35aff70e9b0867e53f5616a6c6f704ee159e2663 /src/mapi/mapi/u_current.h
parent23a89f187272215cc0a517ad75e2cc469a43ba0b (diff)
mapi: Add a new glapi.h implementation.
The new implementation is based on mapi. No new script is needed. As noted in sources.mk, the way to use it is to compile MAPI_GLAPI_SOURCES with MAPI_MODE_GLAPI defined.
Diffstat (limited to 'src/mapi/mapi/u_current.h')
-rw-r--r--src/mapi/mapi/u_current.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mapi/mapi/u_current.h b/src/mapi/mapi/u_current.h
index 061fccc949..bdd2df1125 100644
--- a/src/mapi/mapi/u_current.h
+++ b/src/mapi/mapi/u_current.h
@@ -1,7 +1,7 @@
#ifndef _U_CURRENT_H_
#define _U_CURRENT_H_
-#ifdef MAPI_MODE_UTIL
+#if defined(MAPI_MODE_UTIL) || defined(MAPI_MODE_GLAPI)
#include "glapi/glapi.h"
@@ -21,7 +21,7 @@
#define u_current_table_tsd _gl_DispatchTSD
-#else /* MAPI_MODE_UTIL */
+#else /* MAPI_MODE_UTIL || MAPI_MODE_GLAPI */
#include "u_compiler.h"
@@ -42,7 +42,7 @@ extern void *u_current_user;
#endif /* GLX_USE_TLS */
-#endif /* MAPI_MODE_UTIL */
+#endif /* MAPI_MODE_UTIL || MAPI_MODE_GLAPI */
void
u_current_init(void);