mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-09-21 20:06:40 +00:00
Add oleaut32 library support and remove unnecessary pragma comment
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user