Mercurial > libavutil.hg
diff common.h @ 100:5d02abb9a7e5 libavutil
attribute_deprecated
author | michael |
---|---|
date | Sun, 20 Aug 2006 10:42:11 +0000 |
parents | a3d5e8b048e1 |
children | 5111e87117b7 |
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