[FFmpeg-devel] [PATCH] libavformat, libswscale: fix warning for deprecated macros

Ganesh Ajjanagadde gajjanag at mit.edu
Fri Jun 5 23:34:24 CEST 2015

On Fri, Jun 5, 2015 at 5:17 PM, wm4 <nfxjfg at googlemail.com> wrote:
> On Fri, 5 Jun 2015 16:28:39 -0400
> Ganesh Ajjanagadde <gajjanag at mit.edu> wrote:
>> On Fri, Jun 5, 2015 at 11:30 AM, wm4 <nfxjfg at googlemail.com> wrote:
>> > On Fri, 5 Jun 2015 11:15:29 -0400
>> > Ganesh Ajjanagadde <gajjanag at mit.edu> wrote:
>> >
>> >> Although it has been deprecated from version 2.20,
>> >> version 2.19 adds the _DEFAULT_SOURCE macro
>> >> added in Feb 2014, see
>> >> e.g man feature_test_macros.
>> >>
>> >> I posted this because lots of major projects have now
>> >> shifted to the new macros, it has been available
>> >> for 1.5 years now, and the old macros are deprecated.
>> >
>> > What about systems other than glibc?
>> As can be seen in my patch, all I did was replace the BSD, SVID, etc
>> macros with the newer ones.
>> These are clearly not there on Windows (say),
>> but I assumed that since ffmpeg was building fine before on Windows,
>> so it should build fine with my patch as well.
>> I am not familiar with the details of the ffmpeg build system,
>> and don't have a Windows machine to test either,
>> so perhaps I am wrong.
> OK, but what about systems other than windows and glibc? They exist,
> you know. For example all the BSDs and OSX. What conventions do they
> follow?

I am certainly aware that they exist,
but I don't have access to any non Linux box.
I guess I should have clarified the intent of my original patch submission:
it was meant to raise the fact that this glibc deprecation exists,
and that it ideally should be addressed at some point.
Given my inexperience with the intricacies of cross-platform stuff,
I defer the exact solution to more experienced hands.

> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

More information about the ffmpeg-devel mailing list