diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-02-17 05:17:46 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-02-17 05:17:46 +0000 |
commit | 396f32c98eeef66f67c87336deab94774db00650 (patch) | |
tree | 4d6371d8807b59369c3c7b4509b2bee62544f705 /win32/win32.h | |
parent | c510198c3bda2e4c1554a2926c3803c84c9f6b94 (diff) |
* win32/win32.c (link): implement with CreateHardLink().
* win32/win32.c, win32/win32.h (rb_w32_utime): enable utime() to
directory if on NT. [new] (ruby-bugs-ja:PR#393)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3501 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32/win32.h')
-rw-r--r-- | win32/win32.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/win32/win32.h b/win32/win32.h index 6880b65a2d..59e0dd694b 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) /* |