loader: Fix compilation on Windows with GCC

This commit is contained in:
Paweł Bylica 2018-08-30 11:09:00 +02:00
parent d22cf6e596
commit a889442d6a
No known key found for this signature in database
GPG Key ID: 7A0C037434FE77EF
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@
#define DLL_HANDLE HMODULE
#define DLL_OPEN(filename) LoadLibrary(filename)
#define DLL_CLOSE(handle) FreeLibrary(handle)
#define DLL_GET_CREATE_FN(handle, name) (evmc_create_fn) GetProcAddress(handle, name)
#define DLL_GET_CREATE_FN(handle, name) (evmc_create_fn)(uintptr_t) GetProcAddress(handle, name)
#define HAVE_STRCPY_S 1
#else
#include <dlfcn.h>