aboutsummaryrefslogtreecommitdiffstats
path: root/win32
diff options
context:
space:
mode:
Diffstat (limited to 'win32')
-rw-r--r--win32/Makefile.sub2
-rw-r--r--win32/win32.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/win32/Makefile.sub b/win32/Makefile.sub
index 2441b8d140..a6e764df95 100644
--- a/win32/Makefile.sub
+++ b/win32/Makefile.sub
@@ -637,8 +637,6 @@ $(CONFIG_H): $(MKFILES) $(srcdir)/win32/Makefile.sub $(win_srcdir)/Makefile.sub
#define HAVE_DAYLIGHT 1
#define SETPGRP_VOID 1
#define RSHIFT(x,y) ((x)>>(int)y)
-#define FILE_COUNT _cnt
-#define FILE_READPTR _ptr
#define HAVE_RB_FD_INIT 1
#define RUBY_SETJMP(env) _setjmp(env)
#define RUBY_LONGJMP(env,val) longjmp(env,val)
diff --git a/win32/win32.c b/win32/win32.c
index 5619c75b9f..bf8ddc34e1 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -4886,6 +4886,10 @@ read(int fd, void *buf, size_t size)
}
#endif
+
+#define FILE_COUNT _cnt
+#define FILE_READPTR _ptr
+
#undef fgetc
/* License: Ruby's */
int