summaryrefslogtreecommitdiff
path: root/misc/sys
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-12-29 22:19:07 +0000
committerUlrich Drepper <drepper@redhat.com>2000-12-29 22:19:07 +0000
commit66e23ba14b17fd162d2311e72c041a027e6c16e3 (patch)
tree64f054a6b44bad65efaee7ddddf85c650aa0de11 /misc/sys
parent547d4019fab12772b59adff3a9384461469a9276 (diff)
(__attribute_format_strfmon__): Define.
Diffstat (limited to 'misc/sys')
-rw-r--r--misc/sys/cdefs.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/misc/sys/cdefs.h b/misc/sys/cdefs.h
index f44440b2b7..0c1d2de45b 100644
--- a/misc/sys/cdefs.h
+++ b/misc/sys/cdefs.h
@@ -169,6 +169,17 @@
# define __attribute_format_arg__(x) /* Ignore */
#endif
+/* At some point during the gcc 2.97 development the `strfmon' format
+ attribute for functions was introduced. We don't want to use it
+ unconditionally (although this would be possible) since it
+ generates warnings. */
+#if __GNUC_PREREQ (2,97)
+# define __attribute_format_strfmon__(a,b) \
+ __attribute__ ((__format__ (__strfmon__, a, b)))
+#else
+# define __attribute_format_strfmon__(a,b) /* Ignore */
+#endif
+
/* It is possible to compile containing GCC extensions even if GCC is
run in pedantic mode if the uses are carefully marked using the
`__extension__' keyword. But this is not generally available before