On Tue, 30 Mar 2021, Liu Hao wrote:

在 2021-03-30 01:45, Jeremy Drake via Mingw-w64-public 写道:

Which is why I don't know that mingw-w64 is wrong here, it is doing
exactly what MS says.  However, it could provide aliases in
ucrtbase.def.in for the 'base' functions to make configure happy.

It appears that other time functions are also affected (time and ctime
were just reported on that issue).

Those functions have aliases in MSVCR*.DEFs, but I fail to see why they are missing in UCRT.

The proposed patch adds them so configure checks will not fail. They are added as aliases for the 32-bit variants for the 32-bit DLL, and 64-bit variants for the 64-bit DLL. However I am not sure whether this is desirable: They may also defined as (default) unconditional aliases for 64-bit variants.

The patch looks sensible to me (and good that you added a comment!). For 32 bit mode, I'd say default to whatever the headers default to.

However, please add the corresponding aliases to api-ms-win-crt*.def too; the sum of them should be roughly equivalent to ucrtbase.

// Martin

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

Reply via email to