diff options
| author | Jakob Kaivo <jkk@ung.org> | 2020-08-11 19:52:56 -0400 |
|---|---|---|
| committer | Jakob Kaivo <jkk@ung.org> | 2020-08-11 19:52:56 -0400 |
| commit | 829e76551bc1d5489df5fe9192daa0d63c917f07 (patch) | |
| tree | 7a4641cd2cddc27f44dc9e1ada95bbc5300d4592 /src/stdio | |
| parent | d6127ae58ff3e823773a158a1e79d5999fa7f995 (diff) | |
pull in newer definitions if building C89/C95
Diffstat (limited to 'src/stdio')
| -rw-r--r-- | src/stdio/__printf.c | 17 |
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) +*/ |
