在 2020/2/24 16:10, Martin Storsjö 写道:
> Prior to dc3b2e2bfa9b5a4fcee6f0123047ecc5a6a35d1f, snprintf was
> aliased to _snprintf and vsnprintf was aliased to _vsnprintf in
> the import library. As _snprintf doesn't really behave as snprintf
> should, the aliases were removed.
> 
> Instead make them aliases to the __ms_snprintf and __ms_vsnprintf
> functions, which is what one would end up linking against when
> referencing snprintf/vsnprintf after including stdio.h, unless
> __USE_MINGW_ANSI_STDIO is defined.
> 
> This is necessary, as the snprintf function needs to exist with
> that symbol name, as certain projects/build systems try to detect its
> presence with a linking test, without including stdio.h.
> 
> Signed-off-by: Martin Storsjö <mar...@martin.st>
> ---
>  mingw-w64-crt/stdio/snprintf.c  | 15 ++++++++++++++-
>  mingw-w64-crt/stdio/vsnprintf.c | 14 +++++++++++++-
>  2 files changed, 27 insertions(+), 2 deletions(-)
> 

This patch looks good to me.

I applied this patch and started building GCC and I have reached stage2
now. It seems to work well. Thanks for the fix.


-- 
Best regards,
LH_Mouse

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