aboutsummaryrefslogtreecommitdiff
path: root/mesalib/src/mapi/glapi/glapi.h
diff options
context:
space:
mode:
Diffstat (limited to 'mesalib/src/mapi/glapi/glapi.h')
-rw-r--r--mesalib/src/mapi/glapi/glapi.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/mesalib/src/mapi/glapi/glapi.h b/mesalib/src/mapi/glapi/glapi.h
index 1ca2e4bef..8603317da 100644
--- a/mesalib/src/mapi/glapi/glapi.h
+++ b/mesalib/src/mapi/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 _declspec(dllexport)
+#endif
-extern void *_glapi_Context;
+EXTERN struct _glapi_table *_glapi_Dispatch;
+EXTERN void *_glapi_Context;
# ifdef THREADS
@@ -129,7 +134,7 @@ extern void
_glapi_destroy_multithread(void);
-extern void
+EXTERN void
_glapi_check_multithread(void);
@@ -153,7 +158,7 @@ extern unsigned int
_glapi_get_dispatch_table_size(void);
-extern int
+EXTERN int
_glapi_add_dispatch( const char * const * function_names,
const char * parameter_signature );