changeset 662:1ed74ddc5e6b libavutil

av_flatten to make the similarly named attribute available.
author michael
date Mon, 09 Feb 2009 21:47:57 +0000
parents ac3fc6cb4781
children 39c6caee1839
files common.h
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/common.h	Mon Feb 09 21:47:05 2009 +0000
+++ b/common.h	Mon Feb 09 21:47:57 2009 +0000
@@ -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))