GetCurrentThreadStackLimits dynamically for Windows platform (#939)

GetCurrentThreadStackLimits dynamically for Windows platform
according to suggestion in #902
And fix some compiling warnings on Windows platform
This commit is contained in:
Wenyong Huang
2022-01-07 17:00:38 +08:00
committed by GitHub
parent cb51dbb513
commit 78308e7bda
4 changed files with 39 additions and 21 deletions

View File

@ -222,6 +222,10 @@ if (NOT MSVC)
endif()
endif()
if (MSVC)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_WINSOCK_DEPRECATED_NO_WARNINGS")
endif()
# message ("-- CMAKE_C_FLAGS: ${CMAKE_C_FLAGS}")
add_library (vmlib