summaryrefslogtreecommitdiff
path: root/src/include/stdio.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/stdio.h')
-rw-r--r--src/include/stdio.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/include/stdio.h b/src/include/stdio.h
new file mode 100644
index 00000000..534c6907
--- /dev/null
+++ b/src/include/stdio.h
@@ -0,0 +1,18 @@
+#ifndef STDIO_H
+#define STDIO_H
+
+#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