On Thu, 30 Apr 2020, Liu Hao wrote:
在 2020/4/30 13:17, Martin Storsjö 写道:
This patch broke compiling mingw-w64-crt (with clang, but I'm fairly
sure the same happens with gcc as well:
../misc/wcstof.c:20:7: error: redefinition of 'wcstof' float wcstof
(const wchar_t * __restrict__ wcs, wchar_t ** __restrict__ wcse)
^ /opt/llvm-mingw/i686-w64-mingw32/include/stdlib.h:569:17: note:
previous definition is here
float __cdecl wcstof(const wchar_t * __restrict__ _Str,wchar_t **
__restrict__ _EndPtr){
^
1 error generated.
Oops, sorry for the trouble. The attached patch should fix this issue.
Thanks - this patch looks good to me on a quick glance.
(I would like to know whether there are any better macros than `_CRTBLD`
to check against.)
There's probably a lots of different ways of achieving the same, but
_CRTBLD is fine with me.
// Martin
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public