diff options
Diffstat (limited to 'newlib/libc/stdio/getchar.c')
-rw-r--r-- | newlib/libc/stdio/getchar.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/newlib/libc/stdio/getchar.c b/newlib/libc/stdio/getchar.c index 19301c113..345932666 100644 --- a/newlib/libc/stdio/getchar.c +++ b/newlib/libc/stdio/getchar.c @@ -28,7 +28,7 @@ ANSI_SYNOPSIS #include <stdio.h> int getchar(void); - int _getchar_r(struct _reent *<[reent]>); + int _getchar_r(void *<[reent]>); TRAD_SYNOPSIS #include <stdio.h> @@ -71,25 +71,25 @@ static char sccsid[] = "%W% (Berkeley) %G%"; * A subroutine version of the macro getchar. */ -#include <_ansi.h> -#include <reent.h> #include <stdio.h> +#include <reent.h> + #include "local.h" #undef getchar int -_DEFUN(_getchar_r, (f), - struct _reent *f) +_getchar_r (f) + struct _reent *f; { - _REENT_SMALL_CHECK_INIT (f); + _REENT_SMALL_CHECK_INIT(_stdin_r (f)); return getc (_stdin_r (f)); } #ifndef _REENT_ONLY int -_DEFUN_VOID(getchar) +getchar () { /* CHECK_INIT is called (eventually) by __srefill. */ |