aboutsummaryrefslogtreecommitdiff
path: root/misc/sys
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-12-28 22:19:04 +0000
committerUlrich Drepper <drepper@redhat.com>2002-12-28 22:19:04 +0000
commit3b7ed8712599efbecd92f4d68398fb7a593aef75 (patch)
treed8dea4cd2be3b50dd7706387988c3ddace21dd55 /misc/sys
parentb25a62a8a36541b12e8452224bb2e71f83ade815 (diff)
downloadglibc-3b7ed8712599efbecd92f4d68398fb7a593aef75.zip
glibc-3b7ed8712599efbecd92f4d68398fb7a593aef75.tar.gz
glibc-3b7ed8712599efbecd92f4d68398fb7a593aef75.tar.bz2
Update.
2002-12-28 Ulrich Drepper <drepper@redhat.com> * misc/sys/cdefs.h (__attribute_deprecated__): New #define.
Diffstat (limited to 'misc/sys')
-rw-r--r--misc/sys/cdefs.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/misc/sys/cdefs.h b/misc/sys/cdefs.h
index 72dbfde..1814305 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.