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

wm4 nfxjfg at googlemail.com
Fri Jun 5 23:17:42 CEST 2015


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?


More information about the ffmpeg-devel mailing list