summaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-03-04 17:42:55 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-03-04 17:42:55 +0000
commit2346b3e1cb92bb5e2e9d2525a96368e5ef94848a (patch)
tree6daab4fee2e2e97e13ebd5cbed06915d6a733ec1 /file.c
parent8eb01984bafdb7224907bb0d5a3fa2bff7d5275b (diff)
downloadruby-2346b3e1cb92bb5e2e9d2525a96368e5ef94848a.tar.gz
ruby-2346b3e1cb92bb5e2e9d2525a96368e5ef94848a.tar.xz
ruby-2346b3e1cb92bb5e2e9d2525a96368e5ef94848a.zip
* file.c (eaccess): workaround for VC++8 runtime.
* win32/win32.c (ioinfo): VC++8 support. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8072 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'file.c')
-rw-r--r--file.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/file.c b/file.c
index 1b31a5220..798615669 100644
--- a/file.c
+++ b/file.c
@@ -832,6 +832,9 @@ eaccess(path, mode)
return -1;
#else
+# if _MSC_VER >= 1400
+ mode &= 6;
+# endif
return access(path, mode);
#endif
}