mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
mesa: Enable _mesa_dlopen on MSVC too.
As pointed out by Shervin Sharifi. Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
3cbefe3cf4
commit
6635fb6cae
1 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue