[build] define _CRT_NONSTDC_NO_DEPRECATE with MSVC

disable the deprecation warnings for POSIX function names
This commit is contained in:
Armin Novak 2023-07-27 22:34:45 +02:00 committed by akallabeth
parent 96112b28ab
commit 6bbf1e56cf

View File

@ -431,6 +431,7 @@ if(MSVC)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /Zi")
endif()
add_definitions(-D_CRT_NONSTDC_NO_DEPRECATE)
endif()
if(ANDROID)