Martin Storsjö <[email protected]> writes:

> On Tue, 21 Jun 2011, Måns Rullgård wrote:
>
>> Martin Storsjö <[email protected]> writes:
>> 
>> > ---
>> >  doc/APIchanges         |    3 +++
>> >  libavutil/attributes.h |    2 ++
>> >  libavutil/avutil.h     |    2 +-
>> >  3 files changed, 6 insertions(+), 1 deletions(-)
>> >
>> > diff --git a/doc/APIchanges b/doc/APIchanges
>> > index 79d9749..77dc510 100644
>> > --- a/doc/APIchanges
>> > +++ b/doc/APIchanges
>> > @@ -13,6 +13,9 @@ libavutil:   2011-04-18
>> >  
>> >  API changes, most recent first:
>> >  
>> > +2011-06-xx - xxxxxxx - lavu 51.8.0 - attributes.h
>> > +  Add av_format_printf().
>> > +
>> >  2011-06-xx - xxxxxxx - lavf 53.2.0 - avformat.h
>> >    Add avformat_open_input and avformat_write_header().
>> >    Deprecate av_open_input_stream, av_open_input_file,
>> > diff --git a/libavutil/attributes.h b/libavutil/attributes.h
>> > index 4abe78f..d64f907 100644
>> > --- a/libavutil/attributes.h
>> > +++ b/libavutil/attributes.h
>> > @@ -127,8 +127,10 @@
>> >  
>> >  #ifdef __GNUC__
>> >  #    define av_builtin_constant_p __builtin_constant_p
>> > +#    define av_format_printf(fmtpos, attrpos) 
>> > __attribute__((__format__(__printf__, fmtpos, attrpos)))
>> >  #else
>> >  #    define av_builtin_constant_p(x) 0
>> > +#    define av_format_printf(fmtpos, attrpos)
>> >  #endif
>> 
>> Is this available in all gcc versions?
>
> As far as I know, yes - we've at least been using it within #ifdef 
> __GNUC__ on av_log before this.

Patch OK then.

-- 
Måns Rullgård
[email protected]
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to