diff options
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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));\ |