diff options
author | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-07-23 14:09:52 +0000 |
---|---|---|
committer | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-07-23 14:09:52 +0000 |
commit | 528b6c3f6470cc24d6d5d39f0b573c76a74cc5c9 (patch) | |
tree | aa86347015e56d3890c1b26e4fbdb3a825ce3b08 /file.c | |
parent | e96641be8e30f63d62944e76c2d6e4f078865dd7 (diff) | |
download | ruby-528b6c3f6470cc24d6d5d39f0b573c76a74cc5c9.tar.gz |
* file.c (DOSISH): better Cygwin support.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4126 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1549,7 +1549,7 @@ file_expand_path(fname, dname, result) } BUFCHECK(strlen(dir) > buflen); strcpy(buf, dir); -#ifdef DOSISH +#if defined DOSISH || defined __CYGWIN__ for (p = buf; *p; p = CharNext(p)) { if (*p == '\\') { *p = '/'; @@ -1629,7 +1629,7 @@ file_expand_path(fname, dname, result) strcpy(buf, dir); free(dir); } -#ifdef DOSISH +#if defined DOSISH || defined __CYGWIN__ if (isdirsep(*s)) { /* specified full path, but not drive letter nor UNC */ /* we need to get the drive letter or UNC share name */ @@ -1677,7 +1677,7 @@ file_expand_path(fname, dname, result) } break; case '/': -#if defined DOSISH +#if defined DOSISH || defined __CYGWIN__ case '\\': #endif b = ++s; @@ -1689,7 +1689,7 @@ file_expand_path(fname, dname, result) } break; case '/': -#if defined DOSISH +#if defined DOSISH || defined __CYGWIN__ case '\\': #endif if (s > b) { |