summaryrefslogtreecommitdiff
path: root/include/stdio.h
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-01-11 11:42:17 +0000
committerEric Andersen <andersen@codepoet.org>2001-01-11 11:42:17 +0000
commitae97a89e1a1a9833080dccc81f6cd26784e1b964 (patch)
tree6ff1ddc7e3980591c7fd0bbd5d9b8ac82da12886 /include/stdio.h
parentabdc3e4d06db2b9d93c509774fc7c4fde918ec8e (diff)
A large update from Manuel Novoa III <mnovoa3@bellsouth.net>.
Diffstat (limited to 'include/stdio.h')
-rw-r--r--include/stdio.h14
1 files changed, 5 insertions, 9 deletions
diff --git a/include/stdio.h b/include/stdio.h
index a7a468788..01f6667ef 100644
--- a/include/stdio.h
+++ b/include/stdio.h
@@ -105,16 +105,12 @@ typedef struct __stdio_file FILE;
#include <bits/stdio_lim.h>
#undef __need_FOPEN_MAX
-
-/* Standard streams. */
-extern FILE stdin[1]; /* Standard input stream. */
-extern FILE stdout[1]; /* Standard output stream. */
-extern FILE stderr[1]; /* Standard error output stream. */
+/* Standard streams (internal). */
+extern FILE _stdio_streams[3];
/* C89/C99 say they're macros. Make them happy. */
-#define stdin stdin
-#define stdout stdout
-#define stderr stderr
-
+#define stdin (_stdio_streams)
+#define stdout (_stdio_streams+1)
+#define stderr (_stdio_streams+2)
/* Remove file FILENAME. */
extern int remove __P ((__const char *__filename));