diff options
author | Martin Storsjö <martin@martin.st> | 2015-10-28 21:41:46 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2015-10-29 16:17:15 +0200 |
commit | 567ca142952c5be57e52c149c815dfe5d6ac6d41 (patch) | |
tree | a0133e642c216f8b47d00adb4a2752d166f5a574 | |
parent | 8edaf625f3c38c695c33745822182e94e17d6e1b (diff) | |
download | ffmpeg-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-x | configure | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |