# HG changeset patch # User michael # Date 1234216077 0 # Node ID 1ed74ddc5e6b2753f8646a6803ee704ada2297b6 # Parent ac3fc6cb4781cb455db1a3d8ecb32857dd31b41f av_flatten to make the similarly named attribute available. diff -r ac3fc6cb4781 -r 1ed74ddc5e6b common.h --- 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))