summaryrefslogtreecommitdiff
path: root/src/stdio
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2020-08-11 19:52:56 -0400
committerJakob Kaivo <jkk@ung.org>2020-08-11 19:52:56 -0400
commit829e76551bc1d5489df5fe9192daa0d63c917f07 (patch)
tree7a4641cd2cddc27f44dc9e1ada95bbc5300d4592 /src/stdio
parentd6127ae58ff3e823773a158a1e79d5999fa7f995 (diff)
pull in newer definitions if building C89/C95
Diffstat (limited to 'src/stdio')
-rw-r--r--src/stdio/__printf.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/stdio/__printf.c b/src/stdio/__printf.c
index 26197b4a..87d9368b 100644
--- a/src/stdio/__printf.c
+++ b/src/stdio/__printf.c
@@ -1,4 +1,17 @@
#include "_stdio.h"
+#include "stddef.h"
+#include "wchar.h"
+#include "inttypes.h"
+#include "unistd.h"
+
+#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199909L
+#include "../stdint/intmax_t.c"
+#include "../stdint/uintmax_t.c"
+#include "../stdint/intptr_t.c"
+#include "../stdint/UINTMAX_MAX.c"
+#define strtoumax __strtoumax
+#include "../inttypes/strtoumax.c"
+#endif
#define NUMBUFLEN 64
@@ -311,3 +324,7 @@ int (__printf)(struct io_options *opt, const char * format, va_list arg)
return nout;
}
+
+/*
+STDC(0)
+*/