From 514ff5558483bb7f7cc13e24720ebd5bdf2b9cdf Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Sat, 15 Aug 2020 14:07:15 -0400 Subject: don't support fds when not targetting POSIX --- src/stdio/__printf.c | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to 'src/stdio') diff --git a/src/stdio/__printf.c b/src/stdio/__printf.c index 5b27bbdd..3f2b82ad 100644 --- a/src/stdio/__printf.c +++ b/src/stdio/__printf.c @@ -1,18 +1,24 @@ +#include "stdio.h" #include "_stdio.h" #include "stddef.h" -#include "../wctype/wint_t.c" -#include "../wctype/wctrans_t.c" +#include "wctype/wint_t.c" +#include "wctype/wctrans_t.c" #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" +#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" +#include "inttypes/strtoumax.c" +#endif + +#ifndef _POSIX_SOURCE +#undef write +#define write(_fd, _buf, _size) (void)(_fd) #endif #define NUMBUFLEN 64 -- cgit v1.2.1