Re: [Mingw-w64-public] snprintf() is broken in mingw-w64

2020-02-23 Thread Liu Hao
在 2020/2/23 6:06, Martin Storsjö 写道: > While they are "wrong" in that sense, this now means that there is no > symbol "snprintf" defined at all, which does break compilation of a > number of projects. (That primarily happens within configure scripts of > certain projects, that try to detect if "snp

Re: [Mingw-w64-public] snprintf() is broken in mingw-w64

2020-02-23 Thread Martin Storsjö
On Sun, 23 Feb 2020, Pali Rohár wrote: On Sunday 23 February 2020 22:37:43 Martin Storsjö wrote: On Sat, 22 Feb 2020, Pali Rohár wrote: Also another detail I noticed in your patch: diff --git a/mingw-w64-crt/stdio/snprintf.c b/mingw-w64-crt/stdio/snprintf.c index 93300113..0bb5556f 100644 -

Re: [Mingw-w64-public] snprintf() is broken in mingw-w64

2020-02-23 Thread Martin Storsjö
On Sat, 22 Feb 2020, Pali Rohár wrote: Also another detail I noticed in your patch: diff --git a/mingw-w64-crt/stdio/snprintf.c b/mingw-w64-crt/stdio/snprintf.c index 93300113..0bb5556f 100644 --- a/mingw-w64-crt/stdio/snprintf.c +++ b/mingw-w64-crt/stdio/snprintf.c @@ -12,7 +12,27 @@ int __cd

Re: [Mingw-w64-public] snprintf() vs. _snprintf()

2020-02-23 Thread Dan Raymond
I've been thinking some more about this and maybe we are going about it wrong.  How did we get here in the first place?  I don't know the entire history of MinGW but I suspect this came about from the very early days when people were trying to port Unix applications to Windows.  Those applicati