diff options
Diffstat (limited to 'lib/libc/stdio/vdprintf.c')
| -rw-r--r-- | lib/libc/stdio/vdprintf.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/lib/libc/stdio/vdprintf.c b/lib/libc/stdio/vdprintf.c index 66a041cc..4647d641 100644 --- a/lib/libc/stdio/vdprintf.c +++ b/lib/libc/stdio/vdprintf.c @@ -1,12 +1,16 @@ -#include <io.h> -#include <stdio.h> +#include "__stdio.h" // for __FILE + +#include <stdio.h> // for vfprintf, _IONBF, va_list, vdprintf int vdprintf(int fildes, const char *restrict format, va_list ap) { int r; - FILE f; - f.fd = fildes; - f.type = _IONBF; - r = vfprintf(&f, format, ap); + struct __FILE stream; + + stream.fd = fildes; + stream.type = _IONBF; + + r = vfprintf(&stream, format, ap); + return r; } |
