[FFmpeg-devel] [PATCH] Make compilable with VS2015

Michael Niedermayer michaelni at gmx.at
Fri Mar 6 22:03:17 CET 2015


On Fri, Mar 06, 2015 at 09:58:37PM +0100, Michael Niedermayer wrote:
> On Fri, Mar 06, 2015 at 02:59:43PM -0500, Ronald S. Bultje wrote:
> > Hi,
> > 
> > On Fri, Mar 6, 2015 at 2:42 PM, Peter <dravorek at googlemail.com> wrote:
> > 
> > > From c72344d2b1dc8b087e5da904724c959005f36f4b Mon Sep 17 00:00:00 2001
> > > From: Peter Tissen <dravorek at gmail.com>
> > > Date: Fri, 6 Mar 2015 19:39:27 +0100
> > > Subject: [PATCH] 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
> > >
> > > Signed-off-by: Peter Tissen <dravorek at gmail.com>
> > > ---
> > >  configure            | 14 +++++++++-----
> > >  libavutil/internal.h |  2 +-
> > >  2 files changed, 10 insertions(+), 6 deletions(-)
> > >
> > > diff --git a/configure b/configure
> > > index ce745d2..1ea2032 100755
> > > --- a/configure
> > > +++ b/configure
> > > @@ -3531,7 +3531,9 @@ probe_cc(){
> > >          _flags='-nologo'
> > >          _cflags='-D_USE_MATH_DEFINES -D_CRT_SECURE_NO_WARNINGS
> > > -Dinline=__inline -FIstdlib.h -Dstrtoll=_strtoi64'
> > >          if [ $pfx = hostcc ]; then
> > > -            append _cflags -Dsnprintf=_snprintf
> > > +            if [ -z "$cl_major_ver" ] || [ $cl_major_ver -le 18 ]; then
> > > +                append _cflags -Dsnprintf=_snprintf
> > > +            fi
> > 
> > 
> > Oh wow that's amazing! They fixed it! Hurray! I'm seriously happy.
> 
> applied (from the github pull req as the attached patch was corrupted)

should i backport this to 2.6 ?

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I know you won't believe me, but the highest form of Human Excellence is
to question oneself and others. -- Socrates
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150306/a6aaed61/attachment.asc>


More information about the ffmpeg-devel mailing list