From 3acb8d3f94d62cc6b5676f7b8e2d5d21ff18bfb9 Mon Sep 17 00:00:00 2001 From: Stefan Farfeleder Date: Thu, 26 Jan 2006 20:53:40 +0000 Subject: Analogous to __printflike and __scanflike, add the macro __format_arg which expands to the GCC format_arg attribute if supported. This fixes a syntax error in for compilers/tools not implementing the GCC __attribute__ extensions. --- include/nl_types.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'include/nl_types.h') diff --git a/include/nl_types.h b/include/nl_types.h index 349fd77fc710..e3865680bbef 100644 --- a/include/nl_types.h +++ b/include/nl_types.h @@ -97,8 +97,7 @@ typedef __nl_item nl_item; __BEGIN_DECLS nl_catd catopen(const char *, int); -char *catgets(nl_catd, int, int, const char *) - __attribute__((__format_arg__(4))); +char *catgets(nl_catd, int, int, const char *) __format_arg(4); int catclose(nl_catd); __END_DECLS -- cgit v1.2.3