在 2025-11-18 19:17, Pali Rohár 写道:
On Tuesday 18 November 2025 10:18:33 LIU Hao wrote: C99 does not specify %S format, here it is MS extension.And in any case, is there any reason why not to support h and l modifiers for %S format (%hS and %lS)? I was somehow expecting that mingw-w64 printf implementation would support all possible modifiers supported by msvcrt, UCRT, C99 and GNU.
`%hS` and `%lS` are acceptable I think. `%hS` is identical to `%hs` so there's probably no reason to use them.
Mostly mingw-w64 printf-family functions should cover MS implementations, unless there's a reason not to (`%Lg` for example).
I'm interested by the %Z change. However, <ntdef.h> is a kernel header and may cause conflicts with other SDK headers; maybe <winternl.h> should be included instead.I looked at the https://learn.microsoft.com/en-us/windows/win32/api/ntdef/ and seems that it is really kernel header. I thought that ntdef.h is normal header as it is not in the mingw-w64-headers/ddk/include/ddk/ like others kernel header files. Should not be all kernel headers in mingw-w64-headers/ddk/include/ddk/ directory?
The Microsoft ntdef.h is installed with Windows SDK and not WDK. -- Best regards, LIU Hao
OpenPGP_signature.asc
Description: OpenPGP digital signature
_______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
