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

Hendrik Leppkes h.leppkes at gmail.com
Fri Mar 6 22:42:07 CET 2015


On Fri, Mar 6, 2015 at 10:40 PM, James Almer <jamrial at gmail.com> wrote:
> On 06/03/15 6:23 PM, Michael Niedermayer wrote:
>> On Fri, Mar 06, 2015 at 06:06:23PM -0300, James Almer wrote:
>>> On 06/03/15 6:03 PM, Michael Niedermayer wrote:
>>>> 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 ?
>>>
>>> Assuming it's properly tested (passes Fate, basically) then I'd say yeah, it would be nice to
>>> have 2.6 compile with msvc 2015 out of the box.
>>
>> i dont have msvc setup so i cant easily test ...
>
> Maybe the patch's author could do a fate run since he has a msvc 2015 environment set up
> already. CCing him just in case.
> Nonetheless, the missing lavu hunk that was not applied from the github request and present
> in this patch should be applied.


Once 2015 hits RTM i'll add a fate box, but I don't really bother with
pre-release versions usually.

- Hendrik


More information about the ffmpeg-devel mailing list