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/fgetws.c')
-rw-r--r--newlib/libc/stdio/fgetws.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/newlib/libc/stdio/fgetws.c b/newlib/libc/stdio/fgetws.c
index 3cf45a976..b5d8851e1 100644
--- a/newlib/libc/stdio/fgetws.c
+++ b/newlib/libc/stdio/fgetws.c
@@ -160,6 +160,8 @@ _DEFUN(fgetws, (ws, n, fp),
int n _AND
FILE *fp)
{
- CHECK_INIT (_REENT, fp);
- return _fgetws_r (_REENT, ws, n, fp);
+ struct _reent *reent = _REENT;
+
+ CHECK_INIT (reent, fp);
+ return _fgetws_r (reent, ws, n, fp);
}