mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-09 14:14:39 +02:00
configure: Make compilable with VS2015
So Visual Studio 2015 has some breaking changes regarding the C runtime. In short, they made C99 compatable runtime. Refer to http://blogs.msdn.com/b/vcblog/archive/2014/06/18/crt-features-fixes-and-breaking-changes-in-visual-studio-14-ctp1.aspx Made-Seriously-Happy: "Ronald S. Bultje" <rsbultje@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
482c86f231
commit
42493843dc
4
configure
vendored
4
configure
vendored
@ -3531,8 +3531,10 @@ probe_cc(){
|
|||||||
_flags='-nologo'
|
_flags='-nologo'
|
||||||
_cflags='-D_USE_MATH_DEFINES -D_CRT_SECURE_NO_WARNINGS -Dinline=__inline -FIstdlib.h -Dstrtoll=_strtoi64'
|
_cflags='-D_USE_MATH_DEFINES -D_CRT_SECURE_NO_WARNINGS -Dinline=__inline -FIstdlib.h -Dstrtoll=_strtoi64'
|
||||||
if [ $pfx = hostcc ]; then
|
if [ $pfx = hostcc ]; then
|
||||||
|
if [ -z "$cl_major_ver" ] || [ $cl_major_ver -le 18 ]; then
|
||||||
append _cflags -Dsnprintf=_snprintf
|
append _cflags -Dsnprintf=_snprintf
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
disable stripping
|
disable stripping
|
||||||
elif $_cc --version 2>/dev/null | grep -q ^cparser; then
|
elif $_cc --version 2>/dev/null | grep -q ^cparser; then
|
||||||
_type=cparser
|
_type=cparser
|
||||||
@ -4318,10 +4320,12 @@ case $libc_type in
|
|||||||
add_compat strtod.o strtod=avpriv_strtod
|
add_compat strtod.o strtod=avpriv_strtod
|
||||||
;;
|
;;
|
||||||
msvcrt)
|
msvcrt)
|
||||||
|
if [ -z "$cl_major_ver" ] || [ $cl_major_ver -le 18 ]; then
|
||||||
add_compat strtod.o strtod=avpriv_strtod
|
add_compat strtod.o strtod=avpriv_strtod
|
||||||
add_compat msvcrt/snprintf.o snprintf=avpriv_snprintf \
|
add_compat msvcrt/snprintf.o snprintf=avpriv_snprintf \
|
||||||
_snprintf=avpriv_snprintf \
|
_snprintf=avpriv_snprintf \
|
||||||
vsnprintf=avpriv_vsnprintf
|
vsnprintf=avpriv_vsnprintf
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user