diff options
author | marha <marha@users.sourceforge.net> | 2010-12-25 18:55:23 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2010-12-25 18:55:23 +0000 |
commit | b5ddffc2611f8966686892baed85291313e1ec82 (patch) | |
tree | 938a7b6641f5b77d04dab80c552b41806592d215 | |
parent | 311ab924cacb3353066bf25f23208a315ac06b9d (diff) | |
download | vcxsrv-b5ddffc2611f8966686892baed85291313e1ec82.tar.gz vcxsrv-b5ddffc2611f8966686892baed85291313e1ec82.tar.bz2 vcxsrv-b5ddffc2611f8966686892baed85291313e1ec82.zip |
Solved load library problem for VS compilation
-rw-r--r-- | mesalib/src/mesa/main/dlopen.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mesalib/src/mesa/main/dlopen.c b/mesalib/src/mesa/main/dlopen.c index 57a33292e..62d9023a9 100644 --- a/mesalib/src/mesa/main/dlopen.c +++ b/mesalib/src/mesa/main/dlopen.c @@ -51,7 +51,7 @@ _mesa_dlopen(const char *libname, int flags) #elif defined(_GNU_SOURCE) flags = RTLD_LAZY | RTLD_GLOBAL; /* Overriding flags at this time */ return dlopen(libname, flags); -#elif defined(__MINGW32__) +#elif defined(__MINGW32__) | defined(_MSC_VER) return LoadLibraryA(libname); #else return NULL; @@ -82,7 +82,7 @@ _mesa_dlsym(void *handle, const char *fname) u.v = dlsym(handle, fname2); #elif defined(_GNU_SOURCE) u.v = dlsym(handle, fname); -#elif defined(__MINGW32__) +#elif defined(__MINGW32__) | defined(_MSC_VER) u.v = (void *) GetProcAddress(handle, fname); #else u.v = NULL; @@ -101,7 +101,7 @@ _mesa_dlclose(void *handle) (void) handle; #elif defined(_GNU_SOURCE) dlclose(handle); -#elif defined(__MINGW32__) +#elif defined(__MINGW32__) | defined(_MSC_VER) FreeLibrary(handle); #else (void) handle; |