Mercurial > libavcodec.hg
diff common.h @ 1845:3054613980a8 libavcodec
attribute used patch by (mitya at school dot ioffe dot ru (Dmitry Baryshkov))
author | michael |
---|---|
date | Sun, 29 Feb 2004 22:10:18 +0000 |
parents | 0287241a0c18 |
children | 45a1592dadca |
line wrap: on
line diff
--- a/common.h Sun Feb 29 02:25:19 2004 +0000 +++ b/common.h Sun Feb 29 22:10:18 2004 +0000 @@ -82,6 +82,12 @@ # define always_inline inline #endif +#if defined(__GNUC__) && (__GNUC__ > 3 || __GNUC__ == 3 && __GNUC_MINOR__ > 0) +# define attribute_used __attribute__((used)) +#else +# define attribute_used +#endif + #ifndef EMULATE_INTTYPES # include <inttypes.h> #else