Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdio/getchar.c')
-rw-r--r--newlib/libc/stdio/getchar.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/newlib/libc/stdio/getchar.c b/newlib/libc/stdio/getchar.c
index 19301c113..475cd138b 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,22 @@ static char sccsid[] = "%W% (Berkeley) %G%";
* A subroutine version of the macro getchar.
*/
-#include <_ansi.h>
-#include <reent.h>
#include <stdio.h>
-#include "local.h"
+#include <reent.h>
#undef getchar
int
-_DEFUN(_getchar_r, (f),
- struct _reent *f)
+_getchar_r (f)
+ struct _reent *f;
{
- _REENT_SMALL_CHECK_INIT (f);
return getc (_stdin_r (f));
}
#ifndef _REENT_ONLY
int
-_DEFUN_VOID(getchar)
+getchar ()
{
/* CHECK_INIT is called (eventually) by __srefill. */