# HG changeset patch # User michael # Date 1156070531 0 # Node ID 5d02abb9a7e5900d1f1b23267990ce8731d41b92 # Parent a3d5e8b048e101e3b6604e25389fe251deeec981 attribute_deprecated diff -r a3d5e8b048e1 -r 5d02abb9a7e5 common.h --- 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 #else