Skip to content

Commit a3bab12

Browse files
committed
[OLDNAMES] Add _CRT_NONSTDC_NO_DEPRECATE interface definitions
1 parent e4930be commit a3bab12

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

sdk/include/crt/_mingw.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,9 +216,6 @@ allow GCC to optimize away some EH unwind code, at least in DW2 case. */
216216
/* Disable deprecation for now! */
217217
#define _CRT_SECURE_NO_DEPRECATE
218218
#define _CRT_SECURE_NO_DEPRECATE_CORE
219-
#ifdef __WINESRC__
220-
#define _CRT_NONSTDC_NO_DEPRECATE
221-
#endif
222219

223220
#define __crt_typefix(ctype)
224221

sdk/lib/crt/oldnames.cmake

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,8 @@ else()
2121
add_library(oldnames ${oldnames_asm})
2222
set_target_properties(oldnames PROPERTIES LINKER_LANGUAGE "C")
2323
endif()
24+
25+
target_compile_definitions(oldnames INTERFACE
26+
_CRT_DECLARE_NONSTDC_NAMES=1 # This must be set to 1
27+
_CRT_NONSTDC_NO_DEPRECATE
28+
)

0 commit comments

Comments
 (0)