From 5f0704b66cea73cf2ab148ec4cff645cc301fd8c Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Thu, 31 Aug 2017 14:07:23 +0200 Subject: libio: Assume _LIBC, weak_alias, errno, (__set_)errno &c are defined Do not define _POSIX_SOURCE. --- libio/stdio.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'libio/stdio.c') diff --git a/libio/stdio.c b/libio/stdio.c index 3ff825241b..33292f0429 100644 --- a/libio/stdio.c +++ b/libio/stdio.c @@ -37,12 +37,10 @@ _IO_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 -- cgit v1.2.3