Add oleaut32 library support and remove unnecessary pragma comment

This commit is contained in:
trompetin17 2025-06-02 12:08:59 -05:00
parent 91df65d64c
commit 59ff5d912f
No known key found for this signature in database
GPG key ID: 6C585FA3FC5DB179
3 changed files with 10 additions and 5 deletions

View file

@ -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

View file

@ -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

View file

@ -31,11 +31,6 @@
#include <OAIdl.h> // VARIANT
#if MSC_VERSION
# pragma comment(lib, "oleaut32.lib") // VariantChangeType
#endif
//-----------------------------------------------------------------------------
// fix omissions in the VC PSDK's dbghelp.h