在 2024-03-04 16:03, Martin Storsjö 写道:
MSVC does provide this function without an underscore prefix (via
the oldnames library) just like a number of other functions.

In mingw-w64 headers, we already provide a declaration of this
function, just like many others, but it was missing from the
import libraries.

Provide it as an alias, just like we do for many other similar
functions that only exist with a leading underscore in the runtime
DLLs.

Signed-off-by: Martin Storsjö <mar...@martin.st>
---
  mingw-w64-crt/def-include/msvcrt-common.def.in           | 1 +
  mingw-w64-crt/lib-common/api-ms-win-crt-stdio-l1-1-0.def | 1 +
  2 files changed, 2 insertions(+)

This patch looks good to me.

--
Best regards,
LIU Hao

Attachment: 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

Reply via email to