summaryrefslogtreecommitdiffstats
path: root/include/stdio.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/stdio.h')
-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