diff options
Diffstat (limited to 'newlib/libc/stdio/fseeko.c')
-rw-r--r-- | newlib/libc/stdio/fseeko.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/newlib/libc/stdio/fseeko.c b/newlib/libc/stdio/fseeko.c index 97eafd9ca..2c9419d97 100644 --- a/newlib/libc/stdio/fseeko.c +++ b/newlib/libc/stdio/fseeko.c @@ -219,6 +219,8 @@ _DEFUN(_fseeko_r, (ptr, fp, offset, whence), if (fp->_bf._base == NULL) __smakebuf_r (ptr, fp); + +#ifdef _FSEEK_OPTIMIZATION if (fp->_flags & (__SWR | __SRW | __SNBF | __SNPT)) goto dumb; if ((fp->_flags & __SOPT) == 0) @@ -350,6 +352,7 @@ _DEFUN(_fseeko_r, (ptr, fp, offset, whence), * We get here if we cannot optimise the seek ... just * do it. Allow the seek function to change fp->_bf._base. */ +#endif dumb: if (_fflush_r (ptr, fp) |