[FFmpeg-cvslog] configure: Add -D_CRT_NONSTDC_NO_WARNINGS when building with msvc

Martin Storsjö git at videolan.org
Mon Nov 2 11:43:49 CET 2015


ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Wed Oct 28 21:41:46 2015 +0200| [567ca142952c5be57e52c149c815dfe5d6ac6d41] | committer: Martin Storsjö

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 at martin.st>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=567ca142952c5be57e52c149c815dfe5d6ac6d41
---

 configure |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure b/configure
index 8d44768..d941d95 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)



More information about the ffmpeg-cvslog mailing list