summaryrefslogtreecommitdiff
path: root/win32/win32.h
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-06-20 07:53:22 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-06-20 07:53:22 +0000
commit8f8d7c1113364b3e87600ea82760a50121a93c6f (patch)
tree4bfaa471140f6d92d43f62a3b9b3252b87abd4cd /win32/win32.h
parent150b98fd760faac3606cbc491372c4ce0b69ba7f (diff)
* ext/dbm/dbm.c (fdbm_closed): new method DBM#closed?
* ext/gdbm/gdbm.c (fgdbm_closed): new method GDBM#closed? * ext/sdbm/init.c (fsdbm_closed): new method SDBM#closed? * test/dbm/test_dbm.rb, test/gdbm/test_gdbm.rb, test/sdbm/test_sdbm.rb (teardown): close all db objects before deleting data files. * win32/win32.{ch} (unlink): hook runtime function to change file attribute before unlinking. fixed: [ruby-dev:26360] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8648 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32/win32.h')
-rw-r--r--win32/win32.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/win32/win32.h b/win32/win32.h
index c73b91bda5..6e0b1fe851 100644
--- a/win32/win32.h
+++ b/win32/win32.h
@@ -128,6 +128,8 @@ extern "C++" {
#define mkdir(p, m) rb_w32_mkdir(p, m)
#undef rmdir
#define rmdir(p) rb_w32_rmdir(p)
+#undef unlink
+#define unlink(p) rb_w32_unlink(p)
#ifdef __MINGW32__
struct timezone {
@@ -191,6 +193,7 @@ extern int rb_w32_isatty(int);
#endif
extern int rb_w32_mkdir(const char *, int);
extern int rb_w32_rmdir(const char *);
+extern int rb_w32_unlink(const char*);
#ifdef __BORLANDC__
extern FILE *rb_w32_fopen(const char *, const char *);