summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-01-09 08:05:32 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-01-09 08:05:32 +0000
commit99628bf1f0f401ef2ad877675321432ebb9a7586 (patch)
tree26c8cdcbb0f6a28883ad894bcfae033df866b1ce /win32
parent639ec768584589b8ebfc98dcb41dfe8db76a1aba (diff)
downloadruby-99628bf1f0f401ef2ad877675321432ebb9a7586.tar.gz
* configure.in (RUBY_CHECK_IO_NEED): check whether fseek() and
fflush() are needed. * io.c (flush_before_seek): flush write stream only. * io.c (rb_io_check_readable): seek instead of flush if the last operation was write. * io.c (rb_io_check_writable): seek instead of flush if the last operation was read. * bcc32/Makefile.sub, win32/Makefile.sub: needs to seek between R/W. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3318 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32')
-rw-r--r--win32/Makefile.sub2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/Makefile.sub b/win32/Makefile.sub
index 57add88df7..5ba33b1830 100644
--- a/win32/Makefile.sub
+++ b/win32/Makefile.sub
@@ -260,7 +260,7 @@ config.h:
#define HAVE_DAYLIGHT 1
#define SETPGRP_VOID 1
#define inline __inline
-#define NEED_IO_FLUSH_BETWEEN_RW 1
+#define NEED_IO_SEEK_BETWEEN_RW 1
#define RSHIFT(x,y) ((x)>>(int)y)
#define FILE_COUNT _cnt
#define FILE_READPTR _ptr