在 2020/3/4 19:58, Martin Storsjö 写道: > Originally, these source files only defined the symbols __ms_[v]snprintf > (based on the _vsnprintf function from msvcr*.dll), but since > 3a1127672ba390, they also define [v]snprintf as aliases to those > functions. > > For ucrt, we shouldn't be defining [v]snprintf aliases based on > msvcr*.dll functions; we already have [v]snprintf for ucrt in > stdio/ucrt_[v]snprintf.c. > > The __ms_[v]snprintf functions aren't visible in UCRT mode at all, > so there's no need to keep them available in libmingwex.a. > Alternatively, we could also consider splitting out the aliases > into small wrapper functions in separate source files. > > This fixes using [v]snprintf functions with UCRT, which was broken > since 3a1127672ba390. > > Signed-off-by: Martin Storsjö <mar...@martin.st> > ---
Looks good to me, too. -- Best regards, LH_Mouse
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