在 2025-6-7 02:04, Kirill Makurin 写道:
Oh, you are right, it does sign-extend the result.I see that declarations of `btowc` and `wctob` in wchar.h do not have `_CRTIMP`. Does it mean they just need to be removed from import libraries? It also seems my second patch is no longer needed.
If we comment them out from DEFs, then it'll be necessary to add 'misc/btowc.c' and 'misc/wctob.c' to sources of libmsvcr* and libucrt* libraries to ensure such libraries continue to provide them.
This means that in 'mingw-w64-crt/Makefile.am' they should be added to `src_msvcrt_common` and `src_ucrtbase`. Individual MSVCR* libraries may have them in sources, which is no longer necessary.
-- 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