summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/dlopen.h
diff options
context:
space:
mode:
authorJose Fonseca <jfonseca@vmware.com>2015-04-14 14:25:06 +0100
committerJose Fonseca <jfonseca@vmware.com>2015-04-15 09:58:27 +0100
commit6635fb6cae702b195e9912747b5a11c41970ab9e (patch)
tree34276127c93f2e90584def7c98b399dc997054b6 /src/mesa/main/dlopen.h
parent3cbefe3cf4c745c7c681cfc18a1e47461fec91db (diff)
downloadexternal_mesa3d-6635fb6cae702b195e9912747b5a11c41970ab9e.zip
external_mesa3d-6635fb6cae702b195e9912747b5a11c41970ab9e.tar.gz
external_mesa3d-6635fb6cae702b195e9912747b5a11c41970ab9e.tar.bz2
mesa: Enable _mesa_dlopen on MSVC too.
As pointed out by Shervin Sharifi. Reviewed-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'src/mesa/main/dlopen.h')
-rw-r--r--src/mesa/main/dlopen.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/main/dlopen.h b/src/mesa/main/dlopen.h
index 1e77849..4d20ff2 100644
--- a/src/mesa/main/dlopen.h
+++ b/src/mesa/main/dlopen.h
@@ -50,7 +50,7 @@ _mesa_dlopen(const char *libname, int flags)
#if defined(HAVE_DLOPEN)
flags = RTLD_LAZY | RTLD_GLOBAL; /* Overriding flags at this time */
return dlopen(libname, flags);
-#elif defined(__MINGW32__)
+#elif defined(_WIN32)
return LoadLibraryA(libname);
#else
return NULL;
@@ -71,7 +71,7 @@ _mesa_dlsym(void *handle, const char *fname)
} u;
#if defined(HAVE_DLOPEN)
u.v = dlsym(handle, fname);
-#elif defined(__MINGW32__)
+#elif defined(_WIN32)
u.v = (void *) GetProcAddress(handle, fname);
#else
u.v = NULL;
@@ -87,7 +87,7 @@ _mesa_dlclose(void *handle)
{
#if defined(HAVE_DLOPEN)
dlclose(handle);
-#elif defined(__MINGW32__)
+#elif defined(_WIN32)
FreeLibrary(handle);
#else
(void) handle;