summaryrefslogtreecommitdiff
path: root/win32/win32.h
diff options
context:
space:
mode:
Diffstat (limited to 'win32/win32.h')
-rw-r--r--win32/win32.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/win32/win32.h b/win32/win32.h
index 6880b65a2d3..59e0dd694b9 100644
--- a/win32/win32.h
+++ b/win32/win32.h
@@ -89,6 +89,7 @@ extern "C++" {
#undef putchar
#undef fgetchar
#undef fputchar
+#undef utime
#define getc(_stream) rb_w32_getc(_stream)
#define putc(_c, _stream) rb_w32_putc(_c, _stream)
#define fgetc(_stream) getc(_stream)
@@ -97,6 +98,7 @@ extern "C++" {
#define putchar(_c) rb_w32_putc(_c, stdout)
#define fgetchar() getchar()
#define fputchar(_c) putchar(_c)
+#define utime(_p, _t) rb_w32_utime(_p, _t)
#define strcasecmp stricmp
#define strncasecmp strnicmp
@@ -121,7 +123,6 @@ extern "C++" {
#define umask _umask
#define unlink _unlink
#define write _write
-#define utime _utime
#endif
#define vsnprintf _vsnprintf
#define snprintf _snprintf
@@ -459,6 +460,7 @@ int rb_w32_putc(int, FILE*);
int rb_w32_getc(FILE*);
int rb_w32_close(int);
int rb_w32_fclose(FILE*);
+int rb_w32_utime(const char *, struct utimbuf *);
#define Sleep(msec) (void)rb_w32_sleep(msec)
/*