From 458bd16496a3cd6dc97e98cf80e51cfe8d9d0fa2 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 9 Jan 2003 08:05:32 +0000 Subject: * 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: http://svn.ruby-lang.org/repos/ruby/trunk@3318 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- bcc32/Makefile.sub | 1 + 1 file changed, 1 insertion(+) (limited to 'bcc32') diff --git a/bcc32/Makefile.sub b/bcc32/Makefile.sub index 965f564ce..025eebbc0 100644 --- a/bcc32/Makefile.sub +++ b/bcc32/Makefile.sub @@ -242,6 +242,7 @@ config.h: \#define HAVE_SINH 1 \#define HAVE_TANH 1 +\#define NEED_IO_SEEK_BETWEEN_RW 1 \#define RSHIFT(x,y) ((x)>>y) \#define FILE_COUNT level \#define FILE_READPTR curp -- cgit