From 3b7ed8712599efbecd92f4d68398fb7a593aef75 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 28 Dec 2002 22:19:04 +0000 Subject: Update. 2002-12-28 Ulrich Drepper * misc/sys/cdefs.h (__attribute_deprecated__): New #define. --- misc/sys/cdefs.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'misc') diff --git a/misc/sys/cdefs.h b/misc/sys/cdefs.h index 72dbfde9cf..18143058fa 100644 --- a/misc/sys/cdefs.h +++ b/misc/sys/cdefs.h @@ -196,6 +196,13 @@ # define __attribute_noinline__ /* Ignore */ #endif +/* gcc allows marking deprecated functions. */ +#if __GNUC_PREREQ (3,2) +# define __attribute_deprecated__ __attribute__ ((__deprecated__)) +#else +# define __attribute_deprecated__ /* Ignore */ +#endif + /* At some point during the gcc 2.8 development the `format_arg' attribute for functions was introduced. We don't want to use it unconditionally (although this would be possible) since it generates warnings. -- cgit v1.2.3