Can build with (original llvm) clang-cl on windows

This commit is contained in:
tamasmeszaros 2019-08-01 16:03:52 +02:00
parent ec9117cc06
commit 7d25d8c677
8 changed files with 40 additions and 8 deletions

View file

@ -62,7 +62,7 @@ template<class F> typename F::FN winapi_get_function(const wchar_t *dll, const c
static HINSTANCE dll_handle = LoadLibraryExW(dll, nullptr, 0);
if (dll_handle == nullptr) { return nullptr; }
return (F::FN)GetProcAddress(dll_handle, fn_name);
return (typename F::FN)GetProcAddress(dll_handle, fn_name);
}
#endif