[SDK][CRT] Add _CRT_NON_CONFORMING_SWPRINTFS support

This allows us to easier port wine changes, where swprintf with a size is used a lot
This commit is contained in:
Mark Jansen 2022-03-13 17:17:39 +01:00
parent 958f1addcf
commit f1132155d9
No known key found for this signature in database
GPG key ID: B39240EE84BEAE8B
5 changed files with 76 additions and 20 deletions

View file

@ -9,13 +9,13 @@ list(APPEND SOURCE
heap.c
locale.c
misc.c
printf.c
scanf.c
signal.c
string.c
time.c)
list(APPEND PCH_SKIP_SOURCE
printf.c # _CRT_NON_CONFORMING_SWPRINTFS
testlist.c)
add_executable(msvcrt_winetest

View file

@ -23,7 +23,9 @@
/* With Visual Studio >= 2005, swprintf() takes an extra parameter unless
* the following macro is defined.
*/
#ifndef _CRT_NON_CONFORMING_SWPRINTFS
#define _CRT_NON_CONFORMING_SWPRINTFS
#endif
#include <stdio.h>
#include <errno.h>