mingw-w64/mingw-w64-headers
Pali Rohár 581532b8e4 headers: Fix _*tscanf and _*tprintf macros which expands to ISO C functions
Ensure that all these MS specific _*t* macros always expands to MS variant
of scanf and printf functions independently of __USE_MINGW_ANSI_STDIO.

Majority of the _*t* macros expands to MS specific variants of stdio
functions which are not provided by mingw when __USE_MINGW_ANSI_STDIO=1.

But some few are, e.g. _tscanf which currently expands to scanf or wscanf.
And this can cause that _tscanf behaves differently than _tscanf_l (which
does not have __USE_MINGW_ANSI_STDIO=1 replacement.

Another example is %s in _stprintf() macro. MS variant of wide-printf
treats %s as wchar_*t, but C95+ mandates that %s is always char*.

_stprintf() is suppose to be called as:

  _stprintf(buffer, _T("%s"), _T("string"));

And wide variant would work correctly only in the case %s takes wchar_t*.

With this change behavior of all _*t* macros would be same and expands
always only to MS function, which also ensures compatibility of %s with
arguments passed to _*t* macros.

Signed-off-by: Martin Storsjö <martin@martin.st>
2024-11-15 23:54:11 +02:00
..
build-aux Regenerate configure with autoconf 2.72 2024-01-09 22:26:23 +08:00
crt headers: Fix _*tscanf and _*tprintf macros which expands to ISO C functions 2024-11-15 23:54:11 +02:00
ddk
defaults
include include/winnt: Fix constexpr-ness of compound assignment operators of enum types 2024-11-13 19:21:20 +08:00
testcases
tlb Revert "headers: Update to wine master" 2023-07-23 19:01:04 +08:00
.gitignore
aclocal.m4 Regenerate configure with autoconf 2.72 2024-01-09 22:26:23 +08:00
ChangeLog
ChangeLog.2009
ChangeLog.2010
ChangeLog.2011
ChangeLog.2012
ChangeLog.2013
config.h.in
configure Regenerate configure with autoconf 2.72 2024-01-09 22:26:23 +08:00
configure.ac configure: Use ucrt for msvcrt by default. 2023-06-25 20:31:20 +02:00
Makefile.am headers: Update imported headers to Wine version ff2070b79006c. 2024-11-03 23:28:35 +01:00
Makefile.in headers: Update imported headers to Wine version ff2070b79006c. 2024-11-03 23:28:35 +01:00
wine-import.sh headers: Import webservices.h and weakreference.idl from Wine. 2024-09-04 15:04:48 +02:00