aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2015-10-28 21:41:46 +0200
committerMartin Storsjö <martin@martin.st>2015-10-29 16:17:15 +0200
commit567ca142952c5be57e52c149c815dfe5d6ac6d41 (patch)
treea0133e642c216f8b47d00adb4a2752d166f5a574
parent8edaf625f3c38c695c33745822182e94e17d6e1b (diff)
downloadffmpeg-567ca142952c5be57e52c149c815dfe5d6ac6d41.tar.gz
configure: Add -D_CRT_NONSTDC_NO_WARNINGS when building with msvc
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>
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index 8d447687da..d941d95027 100755
--- 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)