diff options
author | Dmitry Baryshkov <mitya@school.ioffe.ru> | 2004-02-29 22:10:18 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2004-02-29 22:10:18 +0000 |
commit | 5c0513bda708f48e92459fabb7c343799529b272 (patch) | |
tree | 0a3869dac6f71b5dfd6181519ceab87a52a58f8f /libavcodec/common.h | |
parent | fddae1c30f0d509c3371a89f2af58ae388f496a1 (diff) | |
download | ffmpeg-5c0513bda708f48e92459fabb7c343799529b272.tar.gz |
attribute used patch by (mitya at school dot ioffe dot ru (Dmitry Baryshkov))
Originally committed as revision 2830 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/common.h')
-rw-r--r-- | libavcodec/common.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/common.h b/libavcodec/common.h index 8f88b34b57..e3d952eca7 100644 --- a/libavcodec/common.h +++ b/libavcodec/common.h @@ -82,6 +82,12 @@ extern const struct AVOption avoptions_workaround_bug[11]; # 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 |