在 2025-9-24 02:35, Pali Rohár 写道:
Implementation of btowc.c and wctob.c is same for all CRTs except the
mbstate_t structure. Define __LARGE_MBSTATE_T for btowc.c and wctob.c in
the same way as it is used in mingw_pformat.c, mingw_sformat.c and
mingw_swformat.c files to make code compatible with all CRT libs.

This change allows to move btowc.c and wctob.c files back to libmingwex and
compile them only once, like it was before commit 9d00799905c3 ("crt:
always use replacements for btowc and wctob").
---
  mingw-w64-crt/Makefile.am       | 5 +----
  mingw-w64-crt/misc/btowc.c      | 3 +++
  mingw-w64-crt/misc/ucrt_btowc.c | 9 ---------
  mingw-w64-crt/misc/ucrt_wctob.c | 9 ---------
  mingw-w64-crt/misc/wctob.c      | 3 +++
  5 files changed, 7 insertions(+), 22 deletions(-)
  delete mode 100644 mingw-w64-crt/misc/ucrt_btowc.c
  delete mode 100644 mingw-w64-crt/misc/ucrt_wctob.c

Thanks for the patch. Pushed to master now.

--
Best regards,
LIU Hao

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

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

Reply via email to