diff options
| author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-25 07:04:25 +0000 |
|---|---|---|
| committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-25 07:04:25 +0000 |
| commit | bc21ed293f36bf36763b2384432ca06cab4d983c (patch) | |
| tree | 4eda581d47a1554319f661107614e12083c4927c /include/ruby/win32.h | |
| parent | 9c01b5e3a1c96642d3cb5bf0ef0f8989eb005fdc (diff) | |
| download | ruby-bc21ed293f36bf36763b2384432ca06cab4d983c.tar.gz ruby-bc21ed293f36bf36763b2384432ca06cab4d983c.tar.xz ruby-bc21ed293f36bf36763b2384432ca06cab4d983c.zip | |
* win32/win32.c, include/ruby/win32.h (rb_w32_access): new function to
replace MSVCRT's access().
[ruby-core:25761]
* file.c (eaccess): workaround for recent MSVCRT is no longer needed.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25092 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby/win32.h')
| -rw-r--r-- | include/ruby/win32.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ruby/win32.h b/include/ruby/win32.h index 97dae2117..83bc08007 100644 --- a/include/ruby/win32.h +++ b/include/ruby/win32.h @@ -191,6 +191,7 @@ extern DWORD rb_w32_osid(void); extern int rb_w32_stat(const char *, struct stat *); extern int rb_w32_fstat(int, struct stat *); #endif +#define access(path,mode) rb_w32_access(path,mode) #define strcasecmp _stricmp #define strncasecmp _strnicmp @@ -278,6 +279,7 @@ extern int rb_w32_mkdir(const char *, int); extern int rb_w32_rmdir(const char *); extern int rb_w32_unlink(const char *); extern int rb_w32_stati64(const char *, struct stati64 *); +extern int rb_w32_access(const char *, int); #ifdef __BORLANDC__ extern int rb_w32_fstati64(int, struct stati64 *); |
