diff options
author | Ulrich Drepper <drepper@redhat.com> | 2002-12-28 22:19:04 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2002-12-28 22:19:04 +0000 |
commit | 3b7ed8712599efbecd92f4d68398fb7a593aef75 (patch) | |
tree | d8dea4cd2be3b50dd7706387988c3ddace21dd55 /misc | |
parent | b25a62a8a36541b12e8452224bb2e71f83ade815 (diff) | |
download | glibc-3b7ed8712599efbecd92f4d68398fb7a593aef75.tar glibc-3b7ed8712599efbecd92f4d68398fb7a593aef75.tar.gz glibc-3b7ed8712599efbecd92f4d68398fb7a593aef75.tar.bz2 glibc-3b7ed8712599efbecd92f4d68398fb7a593aef75.zip |
Update.
2002-12-28 Ulrich Drepper <drepper@redhat.com>
* misc/sys/cdefs.h (__attribute_deprecated__): New #define.
Diffstat (limited to 'misc')
-rw-r--r-- | misc/sys/cdefs.h | 7 |
1 files changed, 7 insertions, 0 deletions
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. |