在 2021-03-02 19:40, Martin Storsjö 写道:
Signed-off-by: Martin Storsjö <[email protected]> --- The rest of the ifdef also looks a bit off; I guess this should be linked to __USE_MINGW_ANSI_STDIO instead. --- mingw-w64-headers/crt/inttypes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
How about `#if defined(_UCRT) || __USE_MINGW_ANSI_STDIO` (like what we already did with `PRId64` etc.)? Checking for `__STDC_VERSION__` doesn't seem correct for mainly three reasons: 0) <inttypes.h> is a C99 header, so there is no need to check for C99 inside it. 1) mingw-w64 stdio functions always support them despite `-std=c89`. 2) Old MSVCR* DLLs never support them despite `-std=c99`. -- Best regards, Liu Hao
OpenPGP_signature
Description: OpenPGP digital signature
_______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
