changeset 100:5d02abb9a7e5 libavutil

attribute_deprecated
author michael
date Sun, 20 Aug 2006 10:42:11 +0000
parents a3d5e8b048e1
children dc973a8c90fd
files common.h
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/common.h	Sat Aug 19 20:55:02 2006 +0000
+++ b/common.h	Sun Aug 20 10:42:11 2006 +0000
@@ -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