aboutsummaryrefslogtreecommitdiff
path: root/mesalib/src/mesa/glapi/glapi.h
diff options
context:
space:
mode:
Diffstat (limited to 'mesalib/src/mesa/glapi/glapi.h')
-rw-r--r--mesalib/src/mesa/glapi/glapi.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/mesalib/src/mesa/glapi/glapi.h b/mesalib/src/mesa/glapi/glapi.h
index 1ca2e4bef..46d43244e 100644
--- a/mesalib/src/mesa/glapi/glapi.h
+++ b/mesalib/src/mesa/glapi/glapi.h
@@ -94,9 +94,14 @@ extern __thread void * _glapi_tls_Context
#else
-extern struct _glapi_table *_glapi_Dispatch;
+#ifdef INSERVER
+#define EXTERN _declspec(dllimport)
+#else
+#define EXTERN extern
+#endif
-extern void *_glapi_Context;
+EXTERN struct _glapi_table *_glapi_Dispatch;
+EXTERN void *_glapi_Context;
# ifdef THREADS