diff options
Diffstat (limited to 'newlib/libc/stdio')
-rw-r--r-- | newlib/libc/stdio/fseek.c | 4 | ||||
-rw-r--r-- | newlib/libc/stdio/makebuf.c | 2 | ||||
-rw-r--r-- | newlib/libc/stdio/mktemp.c | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/newlib/libc/stdio/fseek.c b/newlib/libc/stdio/fseek.c index f37393cdc..4cd3e8c7a 100644 --- a/newlib/libc/stdio/fseek.c +++ b/newlib/libc/stdio/fseek.c @@ -198,7 +198,7 @@ fseek (fp, offset, whence) { if (seekfn != __sseek || fp->_file < 0 -#ifdef __CYGWIN_USE_BIG_TYPES__ +#ifdef __USE_INTERNAL_STAT64 || _fstat64_r (ptr, fp->_file, &st) #else || _fstat_r (ptr, fp->_file, &st) @@ -225,7 +225,7 @@ fseek (fp, offset, whence) target = offset; else { -#ifdef __CYGWIN_USE_BIG_TYPES__ +#ifdef __USE_INTERNAL_STAT64 if (_fstat64_r (ptr, fp->_file, &st)) #else if (_fstat_r (ptr, fp->_file, &st)) diff --git a/newlib/libc/stdio/makebuf.c b/newlib/libc/stdio/makebuf.c index afb1e2d82..b18fb1c47 100644 --- a/newlib/libc/stdio/makebuf.c +++ b/newlib/libc/stdio/makebuf.c @@ -47,7 +47,7 @@ __smakebuf (fp) fp->_bf._size = 1; return; } -#ifdef __CYGWIN_USE_BIG_TYPES__ +#ifdef __USE_INTERNAL_STAT64 if (fp->_file < 0 || _fstat64_r (fp->_data, fp->_file, &st) < 0) #else if (fp->_file < 0 || _fstat_r (fp->_data, fp->_file, &st) < 0) diff --git a/newlib/libc/stdio/mktemp.c b/newlib/libc/stdio/mktemp.c index 24bbf67e1..66030a382 100644 --- a/newlib/libc/stdio/mktemp.c +++ b/newlib/libc/stdio/mktemp.c @@ -132,7 +132,7 @@ _DEFUN (_gettemp, (ptr, path, doopen), if (*trv == '/') { *trv = '\0'; -#ifdef __CYGWIN_USE_BIG_TYPES__ +#ifdef __USE_INTERNAL_STAT64 if (_stat64_r (ptr, path, &sbuf)) #else if (_stat_r (ptr, path, &sbuf)) @@ -162,7 +162,7 @@ _DEFUN (_gettemp, (ptr, path, doopen), #endif return 0; } -#ifdef __CYGWIN_USE_BIG_TYPES__ +#ifdef __USE_INTERNAL_STAT64 else if (_stat64_r (ptr, path, &sbuf)) #else else if (_stat_r (ptr, path, &sbuf)) |