aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2006-08-20 10:42:11 +0000
committerMichael Niedermayer <michaelni@gmx.at>2006-08-20 10:42:11 +0000
commit955ab9a4d889b359a8dbde0131e5d355f329e664 (patch)
tree40befa8e8693fe9d8bebdfc01ddf63c1bede02c0 /libavutil
parented567d9c417b0c64986c4f8ef6d57542aa8980f1 (diff)
downloadffmpeg-955ab9a4d889b359a8dbde0131e5d355f329e664.tar.gz
attribute_deprecated
Originally committed as revision 6033 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/common.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libavutil/common.h b/libavutil/common.h
index be665a9874..60ea46a83d 100644
--- a/libavutil/common.h
+++ b/libavutil/common.h
@@ -56,6 +56,14 @@
#endif
#endif
+#ifndef attribute_deprecated
+#if defined(__GNUC__) && (__GNUC__ > 3 || __GNUC__ == 3 && __GNUC_MINOR__ > 0)
+# define attribute_deprecated __attribute__((deprecated))
+#else
+# define attribute_deprecated
+#endif
+#endif
+
#ifndef EMULATE_INTTYPES
# include <inttypes.h>
#else