在 2022-06-23 21:38, Luca Bacci 写道:

#define __MSVCRT__ 1

Is that macro necessary in a UCRT-based toolchain?


If you have GCC source you may have a look at 'gcc/config/i386/mingw32.h', 
where there is

    builtin_define ("__MSVCRT__");

So it's defined unconditionally, no matter whether it is UCRT or MSVCRT that is being linked against, or even when there is no CRT at all such as when `-nostdlib` is in effect.


This macro was added in 3fafc2f66579e8baac5d27dd66e3813e05c0c0b6, roughly 24 years ago. I am not clear about how many people there are, who check for it, but if any, they of course don't expect removal of it.



--
Best regards,
LIU Hao

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to