summaryrefslogtreecommitdiff
path: root/misc
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
parentb25a62a8a36541b12e8452224bb2e71f83ade815 (diff)
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.h7
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.