summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-22 00:58:04 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-22 00:58:04 +0000
commit915b5c55084762d88ace671c6d255a5f7d2ba8ca (patch)
treedf82d5077ae1da979acd74e349ccdefc7da2bfbb /file.c
parentb1166a04694766f24385a5a91e028e39f7bd2461 (diff)
* file.c (eaccess): workaround for recent msvcrt's behavior.
[ruby-core:16460] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16129 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 b42bc2eeec..88893e7d9d 100644
--- a/file.c
+++ b/file.c
@@ -944,8 +944,8 @@ eaccess(const char *path, int mode)
return -1;
#else
-# if _MSC_VER >= 1400
- mode &= 6;
+# if defined(_MSC_VER) || defined(__MINGW32__)
+ mode &= ~1;
# endif
return access(path, mode);
#endif