use Ansi version of LoadLibrary

I got the error "C2664: 'HMODULE LoadLibraryW(LPCWSTR)': cannot convert argument 1 from 'const char *' to 'LPCWSTR'". 
Mapping B3_DYNLIB_OPEN to the Ansi version of LoadLibrary fixed the error for me.
This commit is contained in:
Rico P
2017-10-30 11:09:09 +01:00
committed by GitHub
parent d52fb7510b
commit 7578f39c9a

View File

@@ -13,7 +13,7 @@
typedef HMODULE B3_DYNLIB_HANDLE;
#define B3_DYNLIB_OPEN LoadLibrary
#define B3_DYNLIB_OPEN LoadLibraryA
#define B3_DYNLIB_CLOSE FreeLibrary
#define B3_DYNLIB_IMPORT GetProcAddress
#else