aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-12-06 12:48:51 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-12-06 12:48:51 +0000
commita971d184ce825d22b78ca4f08564bd09857cf9a9 (patch)
treef2c4bf7ae10e5ba9edc0f7f41fc9e6b782df0314 /io.c
parent73da604dcc375a630e163c1c3942a3ffb7afb63d (diff)
downloadruby-a971d184ce825d22b78ca4f08564bd09857cf9a9.tar.gz
* io.c (flush_before_seek): flush before seek on any platform.
* configure.in: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5126 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/io.c b/io.c
index 639e207693..06d9283102 100644
--- a/io.c
+++ b/io.c
@@ -194,7 +194,6 @@ rb_io_check_closed(fptr)
static void io_fflush _((FILE *, OpenFile *));
-#if NEED_IO_FLUSH_BEFORE_SEEK
static OpenFile *
flush_before_seek(fptr)
OpenFile *fptr;
@@ -204,9 +203,6 @@ flush_before_seek(fptr)
}
return fptr;
}
-#else
-#define flush_before_seek(fptr) fptr
-#endif
#define io_seek(fptr, ofs, whence) fseeko(flush_before_seek(fptr)->f, ofs, whence)
#define io_tell(fptr) ftello(flush_before_seek(fptr)->f)