diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-12-07 04:45:46 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-12-07 04:45:46 +0000 |
commit | 571e1361b656b9949724bf64a14d665cf9d662f8 (patch) | |
tree | 494482da1dd9d03c27acefbbd8184d4d430fd08a /win32/win32.h | |
parent | 69b64a7d5f1e6b711f0cfac87997b1abe193ca5d (diff) | |
download | ruby-571e1361b656b9949724bf64a14d665cf9d662f8.tar.gz |
* io.c (dir_s_mkdir): win32 special processing doesn't need any longer.
* win32/win32.[ch] (rb_w32_mkdir): new function. POSIX.1 compatible
interface.
* win32/win32.[ch] (rb_w32_rmdir): new function.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7487 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32/win32.h')
-rw-r--r-- | win32/win32.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/win32/win32.h b/win32/win32.h index 4ca3b299bc..5fe8703d4a 100644 --- a/win32/win32.h +++ b/win32/win32.h @@ -130,6 +130,11 @@ extern "C++" { #undef isatty #define isatty(h) rb_w32_isatty(h) +#undef mkdir +#define mkdir(p, m) rb_w32_mkdir(p, m) +#undef rmdir +#define rmdir(p) rb_w32_rmdir(p) + #ifdef __MINGW32__ struct timezone { int tz_minuteswest; @@ -190,6 +195,8 @@ extern int kill(int, int); extern int fcntl(int, int, ...); extern pid_t rb_w32_getpid(void); extern int rb_w32_isatty(int); +extern int rb_w32_mkdir(const char *, int); +extern int rb_w32_rmdir(const char *); #ifdef __BORLANDC__ extern int rb_w32_fstat(int, struct stat *); |