summaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-10-27 09:04:55 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-10-27 09:04:55 +0000
commit7de3b37866d4e0f0de32ef9683752a8a68e7786c (patch)
tree644d368eeeb420fad281c91d9f276bec630fe2c9 /io.c
parent9e4541df3e123dd611acb32e88d7742fcca6d604 (diff)
downloadruby-7de3b37866d4e0f0de32ef9683752a8a68e7786c.tar.gz
ruby-7de3b37866d4e0f0de32ef9683752a8a68e7786c.tar.xz
ruby-7de3b37866d4e0f0de32ef9683752a8a68e7786c.zip
* djgpp/*: sync with the latest.
* ext/extmk.rb, lib/mkmf.rb: flush $stdout. * io.c (READ_DATA_PENDING_COUNT, READ_DATA_PENDING_PTR): undef these macros on DJGPP. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3007 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/io.c b/io.c
index fc50ba869..63ed51115 100644
--- a/io.c
+++ b/io.c
@@ -141,12 +141,18 @@ static VALUE lineno;
extern int ReadDataPending();
# define READ_DATA_PENDING(fp) (!feof(fp))
#endif
+
#ifndef READ_DATA_PENDING_PTR
# ifdef FILE_READPTR
# define READ_DATA_PENDING_PTR(fp) ((fp)->FILE_READPTR)
# endif
#endif
+#if defined __DJGPP__
+# undef READ_DATA_PENDING_COUNT
+# undef READ_DATA_PENDING_PTR
+#endif
+
#define READ_CHECK(fp) do {\
if (!READ_DATA_PENDING(fp)) {\
rb_thread_wait_fd(fileno(fp));\