From 4c585eeddb11697fc19355b22c1b306e301ee462 Mon Sep 17 00:00:00 2001 From: usa Date: Thu, 29 Dec 2005 19:55:58 +0000 Subject: * 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/branches/ruby_1_8@9767 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 6 ++++++ file.c | 3 +++ win32/win32.c | 4 ++++ 3 files changed, 13 insertions(+) diff --git a/ChangeLog b/ChangeLog index f0c37b0e9..f9ccb0a57 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Fri Dec 30 04:54:40 2005 NAKAMURA Usaku + + * file.c (eaccess): workaround for VC++8 runtime. + + * win32/win32.c (ioinfo): VC++8 support. + Thu Dec 29 23:59:37 2005 Nobuyoshi Nakada * eval.c (rb_gc_mark_threads): leave unmarked threads which won't wake diff --git a/file.c b/file.c index d97948db3..5a99742e7 100644 --- a/file.c +++ b/file.c @@ -884,6 +884,9 @@ eaccess(path, mode) return -1; #else +# if _MSC_VER >= 1400 + mode &= 6; +# endif return access(path, mode); #endif } diff --git a/win32/win32.c b/win32/win32.c index f4a3ee637..6541c3dc5 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -1556,6 +1556,10 @@ typedef struct { #ifdef MSVCRT_THREADS int lockinitflag; CRITICAL_SECTION lock; +#if _MSC_VER >= 1400 + char textmode; + char pipech2[2]; +#endif #endif } ioinfo; -- cgit