This fixes lots of warnings like these:

stdio/snprintf.c:9:13: warning: no previous prototype for function 
'__ms_snprintf' [-Wmissing-prototypes]
stdio/vwscanf.c:15:10: warning: implicit declaration of function 
'__ms_vfwscanf' is invalid in C99 [-Wimplicit-function-declaration]

Signed-off-by: Martin Storsjö <[email protected]>
---
It would be enough to set this flag when building the files in
stdio/ though. Or we could just make this flag specific to libmingwex.a.

But I don't think there's any harm in setting it globally for the
whole crt - this is the default mode in how these sources were
expected to be compiled before anyway.
---
 mingw-w64-crt/Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mingw-w64-crt/Makefile.am b/mingw-w64-crt/Makefile.am
index 86b0b0d73..95d5ae9e5 100644
--- a/mingw-w64-crt/Makefile.am
+++ b/mingw-w64-crt/Makefile.am
@@ -20,7 +20,7 @@ else
 endif
 
 AM_CPPFLAGS=$(sysincludes)
-AM_CFLAGS=-pipe -std=gnu99 -D_CRTBLD -D_WIN32_WINNT=0x0f00 
-D__MSVCRT_VERSION__=0x700 @ADD_C_CXX_WARNING_FLAGS@ @ADD_C_ONLY_WARNING_FLAGS@
+AM_CFLAGS=-pipe -std=gnu99 -D_CRTBLD -D_WIN32_WINNT=0x0f00 
-D__MSVCRT_VERSION__=0x700 -D__USE_MINGW_ANSI_STDIO=0 @ADD_C_CXX_WARNING_FLAGS@ 
@ADD_C_ONLY_WARNING_FLAGS@
 AM_CXXFLAGS=@ADD_C_CXX_WARNING_FLAGS@ @ADD_CXX_ONLY_WARNING_FLAGS@
 CPPFLAGSARM32=-mfpu=vfpv3
 CPPFLAGS32=-m32
-- 
2.17.1



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

Reply via email to