aboutsummaryrefslogtreecommitdiff
path: root/include/ansidecl.h
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2004-09-05 06:04:05 +0000
committerDJ Delorie <dj@redhat.com>2004-09-05 06:04:05 +0000
commita5ecc6a5f53006b3e4d000902a13ee10333a40f2 (patch)
treebe3b44d2489d9b5b6cff901f3fbc29c27e894024 /include/ansidecl.h
parent564803d92181e267d358698af7bc3f2d5461f8ed (diff)
downloadfsf-binutils-gdb-a5ecc6a5f53006b3e4d000902a13ee10333a40f2.zip
fsf-binutils-gdb-a5ecc6a5f53006b3e4d000902a13ee10333a40f2.tar.gz
fsf-binutils-gdb-a5ecc6a5f53006b3e4d000902a13ee10333a40f2.tar.bz2
merge from gcc
Diffstat (limited to 'include/ansidecl.h')
-rw-r--r--include/ansidecl.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/ansidecl.h b/include/ansidecl.h
index ccf0b27..04c3a30 100644
--- a/include/ansidecl.h
+++ b/include/ansidecl.h
@@ -322,6 +322,15 @@ So instead we use the macro below and test it against specific values. */
# define ATTRIBUTE_NULL_PRINTF_5 ATTRIBUTE_NULL_PRINTF(5, 6)
#endif /* ATTRIBUTE_NULL_PRINTF */
+/* Attribute `sentinel' was valid as of gcc 3.5. */
+#ifndef ATTRIBUTE_SENTINEL
+# if (GCC_VERSION >= 3005)
+# define ATTRIBUTE_SENTINEL __attribute__ ((__sentinel__))
+# else
+# define ATTRIBUTE_SENTINEL
+# endif /* GNUC >= 3.5 */
+#endif /* ATTRIBUTE_SENTINEL */
+
/* We use __extension__ in some places to suppress -pedantic warnings
about GCC extensions. This feature didn't work properly before
gcc 2.8. */