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_u.c')
-rw-r--r--newlib/libc/stdio/getchar_u.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/newlib/libc/stdio/getchar_u.c b/newlib/libc/stdio/getchar_u.c
index be566ea26..f36f88810 100644
--- a/newlib/libc/stdio/getchar_u.c
+++ b/newlib/libc/stdio/getchar_u.c
@@ -54,15 +54,14 @@ static char sccsid[] = "%W% (Berkeley) %G%";
* A subroutine version of the macro getchar_unlocked.
*/
-#include <_ansi.h>
-#include <reent.h>
#include <stdio.h>
+#include <reent.h>
#undef getchar_unlocked
int
-_DEFUN(_getchar_unlocked_r, (f),
- struct _reent *f)
+_getchar_unlocked_r (f)
+ struct _reent *f;
{
return getc_unlocked (_stdin_r (f));
}
@@ -70,7 +69,7 @@ _DEFUN(_getchar_unlocked_r, (f),
#ifndef _REENT_ONLY
int
-_DEFUN_VOID(getchar_unlocked)
+getchar_unlocked ()
{
/* CHECK_INIT is called (eventually) by __srefill. */