summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-22 17:29:39 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-22 17:29:39 +0000
commita47dfe276352f2c02aa96341cb0a37ce7d5b4b69 (patch)
tree65e334506c36d6028a4aa82afb680191d268e8c3 /file.c
parent7f6df101caca14f3bc68226ff33b7301ffbe6d74 (diff)
Merge from ruby_1_8.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@16166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'file.c')
-rw-r--r--file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/file.c b/file.c
index bde7f07..cc2ccd3 100644
--- a/file.c
+++ b/file.c
@@ -891,8 +891,8 @@ eaccess(path, mode)
return -1;
#else
-# if _MSC_VER >= 1400
- mode &= 6;
+# if defined(_MSC_VER) || defined(__MINGW32__)
+ mode &= ~1;
# endif
return access(path, mode);
#endif