aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/common.h
diff options
context:
space:
mode:
authorDmitry Baryshkov <mitya@school.ioffe.ru>2004-02-29 22:10:18 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-02-29 22:10:18 +0000
commit5c0513bda708f48e92459fabb7c343799529b272 (patch)
tree0a3869dac6f71b5dfd6181519ceab87a52a58f8f /libavcodec/common.h
parentfddae1c30f0d509c3371a89f2af58ae388f496a1 (diff)
downloadffmpeg-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.h6
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