diff options
author | stefanf <stefanf@FreeBSD.org> | 2006-01-26 20:53:40 +0000 |
---|---|---|
committer | stefanf <stefanf@FreeBSD.org> | 2006-01-26 20:53:40 +0000 |
commit | 8d30a9e919676913a7c5c33b7bff8a00c70cecbf (patch) | |
tree | fec6a02b6de494ca8a95536d26d8c3d542bc25e3 /include/stdio.h | |
parent | e987e3c294913597ae5cb3da5e72bf6c5d11ea06 (diff) | |
download | FreeBSD-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/stdio.h')
-rw-r--r-- | include/stdio.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/include/stdio.h b/include/stdio.h index 8ff084d..d25f02c 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -328,12 +328,7 @@ char *tempnam(const char *, const char *); int asprintf(char **, const char *, ...) __printflike(2, 3); char *ctermid_r(char *); char *fgetln(FILE *, size_t *); -#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 || __GNUC__ >= 3 -#define __ATTR_FORMAT_ARG __attribute__((__format_arg__(2))) -#else -#define __ATTR_FORMAT_ARG -#endif -__const char *fmtcheck(const char *, const char *) __ATTR_FORMAT_ARG; +__const char *fmtcheck(const char *, const char *) __format_arg(2); int fpurge(FILE *); void setbuffer(FILE *, char *, int); int setlinebuf(FILE *); |