mirror of
https://github.com/thunderbrewhq/squall.git
synced 2026-02-04 08:59:07 +00:00
chore(build): set CCritSect recursive define on Windows systems
This commit is contained in:
parent
f75d9caba3
commit
ff0b43c2ce
1 changed files with 6 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue