diff options
Diffstat (limited to 'libc-top-half/musl/src/include/stdio.h')
-rw-r--r-- | libc-top-half/musl/src/include/stdio.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/libc-top-half/musl/src/include/stdio.h b/libc-top-half/musl/src/include/stdio.h new file mode 100644 index 0000000..176a73c --- /dev/null +++ b/libc-top-half/musl/src/include/stdio.h @@ -0,0 +1,22 @@ +#ifndef STDIO_H +#define STDIO_H + +#ifdef __wasilibc_unmodified_upstream /* WASI doesn't need to define FILE as a complete type */ +#define __DEFINED_struct__IO_FILE +#endif + +#include "../../include/stdio.h" + +#undef stdin +#undef stdout +#undef stderr + +extern hidden FILE __stdin_FILE; +extern hidden FILE __stdout_FILE; +extern hidden FILE __stderr_FILE; + +#define stdin (&__stdin_FILE) +#define stdout (&__stdout_FILE) +#define stderr (&__stderr_FILE) + +#endif |