OSDN Git Service

av_flatten to make the similarly named attribute available.
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 9 Feb 2009 21:47:57 +0000 (21:47 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 9 Feb 2009 21:47:57 +0000 (21:47 +0000)
Originally committed as revision 17105 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavutil/common.h

index bbcca75..6887cf0 100644 (file)
 #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))