diff --git a/build/premake/extern_libs5.lua b/build/premake/extern_libs5.lua index b70df7d620..b9444b8d6c 100644 --- a/build/premake/extern_libs5.lua +++ b/build/premake/extern_libs5.lua @@ -587,6 +587,14 @@ extern_lib_defs = { }) end, }, + oleaut32 = { + link_settings = function() + add_default_links({ + win_names = { "oleaut32" }, + dbg_suffix = "" + }) + end, + }, openal = { compile_settings = function() if os.istarget("windows") then diff --git a/build/premake/premake5.lua b/build/premake/premake5.lua index 2c92e34c61..e3aa6d8109 100644 --- a/build/premake/premake5.lua +++ b/build/premake/premake5.lua @@ -1042,6 +1042,8 @@ used_extern_libs = { "freetype", "valgrind", + + "oleaut32", } if not os.istarget("windows") and not _OPTIONS["android"] and not os.istarget("macosx") then diff --git a/source/lib/external_libraries/dbghelp.h b/source/lib/external_libraries/dbghelp.h index 818a1ed545..8e99e18403 100644 --- a/source/lib/external_libraries/dbghelp.h +++ b/source/lib/external_libraries/dbghelp.h @@ -31,11 +31,6 @@ #include // VARIANT -#if MSC_VERSION -# pragma comment(lib, "oleaut32.lib") // VariantChangeType -#endif - - //----------------------------------------------------------------------------- // fix omissions in the VC PSDK's dbghelp.h