Compilation fix (mingw)

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

No files matched your search

+1 -1
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