diff options
Diffstat (limited to 'newlib/libc/stdio/local.h')
-rw-r--r-- | newlib/libc/stdio/local.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/newlib/libc/stdio/local.h b/newlib/libc/stdio/local.h index 704b6be03..4263a9de6 100644 --- a/newlib/libc/stdio/local.h +++ b/newlib/libc/stdio/local.h @@ -55,11 +55,11 @@ struct _glue * _EXFUN(__sfmoreglue,(struct _reent *,int n)); if ((ptr) && !(ptr)->__sdidinit) \ __sinit (ptr); \ if ((fp) == (FILE *)&__sf_fake_stdin) \ - (fp) = stdin; \ + (fp) = _stdin_r(ptr); \ else if ((fp) == (FILE *)&__sf_fake_stdout) \ - (fp) = stdout; \ + (fp) = _stdout_r(ptr); \ else if ((fp) == (FILE *)&__sf_fake_stderr) \ - (fp) = stderr; \ + (fp) = _stderr_r(ptr); \ } \ while (0) #else /* !_REENT_SMALL */ |