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/fputws.c')
-rw-r--r--newlib/libc/stdio/fputws.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/newlib/libc/stdio/fputws.c b/newlib/libc/stdio/fputws.c
index 0893b3c33..a28a5551b 100644
--- a/newlib/libc/stdio/fputws.c
+++ b/newlib/libc/stdio/fputws.c
@@ -145,6 +145,8 @@ _DEFUN(fputws, (ws, fp),
const wchar_t *ws _AND
FILE *fp)
{
- CHECK_INIT (_REENT, fp);
- return _fputws_r (_REENT, ws, fp);
+ struct _reent *reent = _REENT;
+
+ CHECK_INIT (reent, fp);
+ return _fputws_r (reent, ws, fp);
}