forked from mirrors/0ad
Define __PRETTY_FUNCTION__ for Windows
mozilla/LinkedList.h uses __PRETTY_FUNCTION__ in debug builds, even when using MSVC, so just define it to allow building with C++20. Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
This commit is contained in:
@@ -241,6 +241,11 @@ function project_set_build_flags()
|
|||||||
debugenvs { "_NO_DEBUG_HEAP=1" }
|
debugenvs { "_NO_DEBUG_HEAP=1" }
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if os.istarget("windows") then
|
||||||
|
-- mozilla 115 linked list destructor in debug build
|
||||||
|
defines { "__PRETTY_FUNCTION__=__FUNCSIG__" }
|
||||||
|
end
|
||||||
|
|
||||||
filter { "Debug", "action:vs*" }
|
filter { "Debug", "action:vs*" }
|
||||||
defines { "DEBUG" }
|
defines { "DEBUG" }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user