aboutsummaryrefslogtreecommitdiff
path: root/mesalib
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2012-10-31 09:11:35 +0100
committermarha <marha@users.sourceforge.net>2012-10-31 09:11:35 +0100
commit64752fd50dac122ea1ccd0b8d65215082e12723e (patch)
tree6c316f8bef8f45464dd724dca4eb043ae7976ab8 /mesalib
parent2a10674ff619f042c580e69e7160d834903b4273 (diff)
downloadvcxsrv-64752fd50dac122ea1ccd0b8d65215082e12723e.tar.gz
vcxsrv-64752fd50dac122ea1ccd0b8d65215082e12723e.tar.bz2
vcxsrv-64752fd50dac122ea1ccd0b8d65215082e12723e.zip
Solved problem of dxtn.dll not loaded anymore
Diffstat (limited to 'mesalib')
-rw-r--r--mesalib/src/mesa/main/dlopen.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/mesalib/src/mesa/main/dlopen.h b/mesalib/src/mesa/main/dlopen.h
index a5366a14e..26422b695 100644
--- a/mesalib/src/mesa/main/dlopen.h
+++ b/mesalib/src/mesa/main/dlopen.h
@@ -51,7 +51,7 @@ _mesa_dlopen(const char *libname, int flags)
#elif defined(HAVE_DLOPEN)
flags = RTLD_LAZY | RTLD_GLOBAL; /* Overriding flags at this time */
return dlopen(libname, flags);
-#elif defined(__MINGW32__)
+#elif defined(__MINGW32__) || defined(_WIN32)
return LoadLibraryA(libname);
#else
return NULL;
@@ -81,7 +81,7 @@ _mesa_dlsym(void *handle, const char *fname)
u.v = dlsym(handle, fname2);
#elif defined(HAVE_DLOPEN)
u.v = dlsym(handle, fname);
-#elif defined(__MINGW32__)
+#elif defined(__MINGW32__) || defined(_WIN32)
u.v = (void *) GetProcAddress(handle, fname);
#else
u.v = NULL;
@@ -99,7 +99,7 @@ _mesa_dlclose(void *handle)
(void) handle;
#elif defined(HAVE_DLOPEN)
dlclose(handle);
-#elif defined(__MINGW32__)
+#elif defined(__MINGW32__) || defined(_WIN32)
FreeLibrary(handle);
#else
(void) handle;