summaryrefslogtreecommitdiff
path: root/dir.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-01-05 01:50:06 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-01-05 01:50:06 +0000
commit525c8f80b28f38d2cc05fc745c41e27e9972e41f (patch)
tree71600e1c80ab130129ea46db52408a98cffc8cd7 /dir.c
parent1d91fd6c4439d0224b06473e23eccadae3dae777 (diff)
* dir.c (dir_s_mkdir): win32 special processing doesn't need any
longer. (backported from CVS HEAD) * win32/win32.[ch] (rb_w32_mkdir): new function. POSIX.1 compatible interface. (backported from CVS HEAD) * win32/win32.[ch] (rb_w32_rmdir): new function. (backported from CVS HEAD) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'dir.c')
-rw-r--r--dir.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/dir.c b/dir.c
index 97b78cb..d60c0fa 100644
--- a/dir.c
+++ b/dir.c
@@ -761,13 +761,8 @@ dir_s_mkdir(argc, argv, obj)
}
check_dirname(&path);
-#ifndef _WIN32
if (mkdir(RSTRING(path)->ptr, mode) == -1)
rb_sys_fail(RSTRING(path)->ptr);
-#else
- if (mkdir(RSTRING(path)->ptr) == -1)
- rb_sys_fail(RSTRING(path)->ptr);
-#endif
return INT2FIX(0);
}