diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2009-02-10 00:47:57 +0300 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2009-02-10 00:47:57 +0300 |
commit | 3b49f69077dc93e41380478c1a267c5bd85123ae (patch) | |
tree | 160420b77ae41084ddd05930b22640270b300080 /libavutil/common.h | |
parent | 51066987cf05a7cad567e965fa637e28f9d902c5 (diff) |
av_flatten to make the similarly named attribute available.
Originally committed as revision 17105 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil/common.h')
-rw-r--r-- | libavutil/common.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libavutil/common.h b/libavutil/common.h index bbcca7575f..6887cf02f9 100644 --- a/libavutil/common.h +++ b/libavutil/common.h @@ -77,6 +77,14 @@ #endif #endif +#ifndef av_flatten +#if defined(__GNUC__) && (__GNUC__ > 4 || __GNUC__ == 4 && __GNUC_MINOR__ > 0) +# define av_flatten __attribute__((flatten)) +#else +# define av_flatten +#endif +#endif + #ifndef attribute_deprecated #if AV_GCC_VERSION_AT_LEAST(3,1) # define attribute_deprecated __attribute__((deprecated)) |