From ff0b43c2ce22dcd9aba9d4ce23766c4fa142e8dd Mon Sep 17 00:00:00 2001 From: fallenoak Date: Mon, 8 Sep 2025 19:30:40 -0500 Subject: [PATCH] chore(build): set CCritSect recursive define on Windows systems --- CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3e24bdd..7ab272d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -29,7 +29,9 @@ include(system) if(WHOA_STORM_FLAVOR STREQUAL "SC1") 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") message(STATUS "Building Storm with World of Warcraft flavoring") else() @@ -38,6 +40,9 @@ endif() # OS defines if(WHOA_SYSTEM_WIN) + # Implicit behavior of CriticalSection + add_definitions(-DWHOA_STORM_C_CRIT_SECT_RECURSIVE) + # Avoid win32 header hell add_compile_definitions( NOMINMAX