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/fopen.c')
-rw-r--r--newlib/libc/stdio/fopen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/stdio/fopen.c b/newlib/libc/stdio/fopen.c
index d54f46af6..e4708785d 100644
--- a/newlib/libc/stdio/fopen.c
+++ b/newlib/libc/stdio/fopen.c
@@ -153,7 +153,7 @@ _DEFUN (_fopen_r, (ptr, file, mode),
fseek (fp, 0, SEEK_END);
#ifdef __SCLE
- if (setmode(fp->_file, O_BINARY) == O_TEXT)
+ if (__stextmode (fp->_file))
fp->_flags |= __SCLE;
#endif