[OLDNAMES] Add _CRT_NONSTDC_NO_DEPRECATE interface definitions

This commit is contained in:
Timo Kreuzer 2024-05-21 19:27:38 +03:00
parent e4930be4ff
commit a3bab12b50
2 changed files with 5 additions and 3 deletions

View file

@ -21,3 +21,8 @@ else()
add_library(oldnames ${oldnames_asm})
set_target_properties(oldnames PROPERTIES LINKER_LANGUAGE "C")
endif()
target_compile_definitions(oldnames INTERFACE
_CRT_DECLARE_NONSTDC_NAMES=1 # This must be set to 1
_CRT_NONSTDC_NO_DEPRECATE
)