Compilation fix (mingw)

This commit is contained in:
Nekotekina 2017-03-05 19:00:08 +03:00
parent 3baf79f929
commit 19a698682b
5 changed files with 13 additions and 7 deletions

View file

@ -61,7 +61,7 @@ namespace utils
void* get_proc_address(const char* lib, const char* name)
{
#ifdef _WIN32
return GetProcAddress(GetModuleHandleA(lib), name);
return reinterpret_cast<void*>(GetProcAddress(GetModuleHandleA(lib), name));
#else
return dlsym(dlopen(lib, RTLD_NOLOAD), name);
#endif