configure: Add -D_CRT_NONSTDC_NO_WARNINGS when building with msvc
authorMartin Storsjö <martin@martin.st>
Wed, 28 Oct 2015 19:41:46 +0000 (21:41 +0200)
committerMartin Storsjö <martin@martin.st>
Thu, 29 Oct 2015 14:17:15 +0000 (16:17 +0200)
This silences warnings like this one:
libavformat/file.c(62) : warning C4996: 'read': The POSIX name for this
item is deprecated. Instead, use the ISO C++ conformant name: _read.
See online help for details.

Signed-off-by: Martin Storsjö <martin@martin.st>
configure

index 8d44768..d941d95 100755 (executable)
--- a/configure
+++ b/configure
@@ -3113,7 +3113,7 @@ probe_cc(){
         _ld_lib='lib%.a'
         _ld_path='-libpath:'
         _flags='-nologo'
-        _cflags='-D_USE_MATH_DEFINES -D_CRT_SECURE_NO_WARNINGS'
+        _cflags='-D_USE_MATH_DEFINES -D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_WARNINGS'
     elif $_cc 2>&1 | grep -q Intel; then
         _type=icl
         _ident=$($_cc 2>&1 | head -n1)