From f042f18f936c0ebe2ece3dcdeb657a833dba5bb0 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 21 Jun 1999 16:46:16 +0000 Subject: Update. 1999-06-21 Andreas Schwab * libio/Makefile (routines): Add putwchar and putwchar_u. * libio/putwchar.c: Include instead of "stdio.h". * libio/putwchar_u.c: Likewise. Use _IO_stdout instead of stdout. Fix parameter name. * libio/getchar.c: Consistently use _IO_stdin instead of stdin. * libio/getchar_u.c: Likewise. * libio/putchar_u.c: Use _IO_stdout instead of stdout. 1999-06-21 Andreas Schwab * include/features.h (__GNUC_PREREQ): Don't generate `defined' via macro expansion---it's undefined. Properly parenthesize substituted parameters. (__GLIBC_PREREQ): Likewise. --- libio/getchar.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libio/getchar.c') diff --git a/libio/getchar.c b/libio/getchar.c index fdc2ec3a87..80c297f0ae 100644 --- a/libio/getchar.c +++ b/libio/getchar.c @@ -32,9 +32,10 @@ int getchar () { int result; - _IO_cleanup_region_start ((void (*) __P ((void *))) _IO_funlockfile, stdin); + _IO_cleanup_region_start ((void (*) __P ((void *))) _IO_funlockfile, + _IO_stdin); _IO_flockfile (_IO_stdin); - result = _IO_getc_unlocked (stdin); + result = _IO_getc_unlocked (_IO_stdin); _IO_funlockfile (_IO_stdin); _IO_cleanup_region_end (0); return result; -- cgit 1.4.1