在 2024-12-12 21:17, Martin Storsjö 写道:
On Thu, 28 Nov 2024, Pali Rohár wrote:msvcrt.dll preinstalled as part of the Windows system provides more functions than the original Visual C++ 6.0, but still it is compatible with the original version. So setting __MSVCRT_VERSION__ to 0x600 for msvcrt.dll build is relatively sane option.I was considering to use 0x6FF value for this case, but this would make it more complicated for applications if they need to know if they are being compiled for msvcrt.dll library ABI. They would need to check if the macro __MSVCRT_VERSION__ is set to 0x600 (targetting the original VC++ msvcrt.dll library) or to value 0x6FFF (targettting the system msvcrt.dll library). This looks to be additional complication as it would be needed to track all possible values for __MSVCRT_VERSION__. So using just one value 0x600 for both cases should be enough because for system version specific version is always needed to check also _WIN32_WINNT value.I think this change looks reasonable to me, but I'd like Liu Hao, who suggested the 0x6FF version, to follow up here.
I'm fine with this change, too. -- Best regards, LIU Hao
OpenPGP_signature.asc
Description: OpenPGP digital signature
_______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public