[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

@ -216,9 +216,6 @@ allow GCC to optimize away some EH unwind code, at least in DW2 case. */
/* Disable deprecation for now! */
#define _CRT_SECURE_NO_DEPRECATE
#define _CRT_SECURE_NO_DEPRECATE_CORE
#ifdef __WINESRC__
#define _CRT_NONSTDC_NO_DEPRECATE
#endif
#define __crt_typefix(ctype)

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
)