summaryrefslogtreecommitdiff
path: root/libio/stdio.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2018-12-27 15:24:30 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2018-12-27 15:24:30 +0000
commit1949a12d5da678a8532359a95717d8e63910d93b (patch)
tree586d52ba1a6c68f69c997131a343c872bedb8d4e /libio/stdio.c
parentb12af7e807488f3c955f6eceea75c6f23f39f06d (diff)
parent963c37d5c0eb62b38f8764b23931c0dcdd497a13 (diff)
Merge commit 'refs/top-bases/t/master_backports' into t/master_backportst/master_backports
Diffstat (limited to 'libio/stdio.c')
-rw-r--r--libio/stdio.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/libio/stdio.c b/libio/stdio.c
index 6de85e88fb..1b7a1bc2e0 100644
--- a/libio/stdio.c
+++ b/libio/stdio.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1993-2016 Free Software Foundation, Inc.
+/* Copyright (C) 1993-2018 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -30,19 +30,17 @@
#undef stdin
#undef stdout
#undef stderr
-_IO_FILE *stdin = (FILE *) &_IO_2_1_stdin_;
-_IO_FILE *stdout = (FILE *) &_IO_2_1_stdout_;
-_IO_FILE *stderr = (FILE *) &_IO_2_1_stderr_;
+FILE *stdin = (FILE *) &_IO_2_1_stdin_;
+FILE *stdout = (FILE *) &_IO_2_1_stdout_;
+FILE *stderr = (FILE *) &_IO_2_1_stderr_;
#undef _IO_stdin
#undef _IO_stdout
#undef _IO_stderr
-#ifdef _LIBC
-# define AL(name) AL2 (name, _IO_##name)
-# define AL2(name, al) \
+#define AL(name) AL2 (name, _IO_##name)
+#define AL2(name, al) \
extern __typeof (name) al __attribute__ ((alias (#name), \
visibility ("hidden")))
AL(stdin);
AL(stdout);
AL(stderr);
-#endif