chore(build): set CCritSect recursive define on Windows systems

This commit is contained in:
fallenoak 2025-09-08 19:30:40 -05:00
parent f75d9caba3
commit ff0b43c2ce

View file

@ -29,7 +29,9 @@ include(system)
if(WHOA_STORM_FLAVOR STREQUAL "SC1") if(WHOA_STORM_FLAVOR STREQUAL "SC1")
message(STATUS "Building Storm with StarCraft flavoring") message(STATUS "Building Storm with StarCraft flavoring")
add_definitions(-DWHOA_STORM_C_CRIT_SECT_RECURSIVE) if (WHOA_SYSTEM_MAC OR WHOA_SYSTEM_LINUX)
add_definitions(-DWHOA_STORM_C_CRIT_SECT_RECURSIVE)
endif()
elseif(WHOA_STORM_FLAVOR STREQUAL "WOW") elseif(WHOA_STORM_FLAVOR STREQUAL "WOW")
message(STATUS "Building Storm with World of Warcraft flavoring") message(STATUS "Building Storm with World of Warcraft flavoring")
else() else()
@ -38,6 +40,9 @@ endif()
# OS defines # OS defines
if(WHOA_SYSTEM_WIN) if(WHOA_SYSTEM_WIN)
# Implicit behavior of CriticalSection
add_definitions(-DWHOA_STORM_C_CRIT_SECT_RECURSIVE)
# Avoid win32 header hell # Avoid win32 header hell
add_compile_definitions( add_compile_definitions(
NOMINMAX NOMINMAX