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/putc.c')
-rw-r--r--newlib/libc/stdio/putc.c17
1 files changed, 6 insertions, 11 deletions
diff --git a/newlib/libc/stdio/putc.c b/newlib/libc/stdio/putc.c
index 097323417..27a7a4280 100644
--- a/newlib/libc/stdio/putc.c
+++ b/newlib/libc/stdio/putc.c
@@ -65,9 +65,7 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>,
static char sccsid[] = "%W% (Berkeley) %G%";
#endif /* LIBC_SCCS and not lint */
-#include <_ansi.h>
#include <stdio.h>
-#include "local.h"
/*
* A subroutine version of the macro putc.
@@ -76,14 +74,11 @@ static char sccsid[] = "%W% (Berkeley) %G%";
#undef putc
int
-_DEFUN(putc, (c, fp),
- int c _AND
- register FILE *fp)
+putc (c, fp)
+ int c;
+ register FILE *fp;
{
- int result;
- CHECK_INIT (_REENT);
- _flockfile (fp);
- result = __sputc (c, fp);
- _funlockfile (fp);
- return result;
+ /* CHECK_INIT is (eventually) called by __swbuf. */
+
+ return __sputc (c, fp);
}