summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2001-12-04 21:30:23 +0000
committerobrien <obrien@FreeBSD.org>2001-12-04 21:30:23 +0000
commit298e21dbadbaf696e542be97bcf62cef5d687545 (patch)
treeb5bae6e4d1bf845f64f885ba3b36716bbf8aa331 /include
parent33aa47d82708b9241299cc39ae8948dd770659e5 (diff)
downloadFreeBSD-src-298e21dbadbaf696e542be97bcf62cef5d687545.zip
FreeBSD-src-298e21dbadbaf696e542be97bcf62cef5d687545.tar.gz
Turn back on fmtcheck's attribute checks, guarded for non-GCC compilers.
Submitted by: bde
Diffstat (limited to 'include')
-rw-r--r--include/stdio.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/stdio.h b/include/stdio.h
index a3f862d..e96d6c8 100644
--- a/include/stdio.h
+++ b/include/stdio.h
@@ -309,8 +309,14 @@ __END_DECLS
__BEGIN_DECLS
int asprintf __P((char **, const char *, ...)) __printflike(2, 3);
char *ctermid_r __P((char *));
-__const char *fmtcheck __P((const char *, const char *));
char *fgetln __P((FILE *, size_t *));
+#ifdef __GNUC__
+#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 __P((const char *, const char *)) __ATTR_FORMAT_ARG;
int fpurge __P((FILE *));
int fseeko __P((FILE *, _BSD_OFF_T_, int));
_BSD_OFF_T_ ftello __P((FILE *));
OpenPOWER on IntegriCloud