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/fputc.c')
-rw-r--r--newlib/libc/stdio/fputc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/newlib/libc/stdio/fputc.c b/newlib/libc/stdio/fputc.c
index 6af79d470..f380717d1 100644
--- a/newlib/libc/stdio/fputc.c
+++ b/newlib/libc/stdio/fputc.c
@@ -97,9 +97,11 @@ _DEFUN(fputc, (ch, file),
{
#if !defined(__OPTIMIZE_SIZE__) && !defined(PREFER_SIZE_OVER_SPEED)
int result;
- CHECK_INIT(_REENT, file);
+ struct _reent *reent = _REENT;
+
+ CHECK_INIT(reent, file);
_newlib_flockfile_start (file);
- result = _putc_r (_REENT, ch, file);
+ result = _putc_r (reent, ch, file);
_newlib_flockfile_end (file);
return result;
#else