summaryrefslogtreecommitdiffstats
path: root/include/nl_types.h
diff options
context:
space:
mode:
authorstefanf <stefanf@FreeBSD.org>2006-01-26 20:53:40 +0000
committerstefanf <stefanf@FreeBSD.org>2006-01-26 20:53:40 +0000
commit8d30a9e919676913a7c5c33b7bff8a00c70cecbf (patch)
treefec6a02b6de494ca8a95536d26d8c3d542bc25e3 /include/nl_types.h
parente987e3c294913597ae5cb3da5e72bf6c5d11ea06 (diff)
downloadFreeBSD-src-8d30a9e919676913a7c5c33b7bff8a00c70cecbf.zip
FreeBSD-src-8d30a9e919676913a7c5c33b7bff8a00c70cecbf.tar.gz
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 <nl_types.h> for compilers/tools not implementing the GCC __attribute__ extensions.
Diffstat (limited to 'include/nl_types.h')
-rw-r--r--include/nl_types.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/nl_types.h b/include/nl_types.h
index 349fd77..e386568 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
OpenPOWER on IntegriCloud