diff options
author | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-01-18 11:59:43 +0000 |
---|---|---|
committer | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-01-18 11:59:43 +0000 |
commit | c5c450cded45a3e61e5560f7b739489de260d548 (patch) | |
tree | e5164c2387505468446d6fa09f0854df18eda159 /ruby.c | |
parent | bf08ec6575355fc349f6b69602cf718e61e98269 (diff) |
* ruby.c: use translate_char() on Cygwin.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@5491 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby.c')
-rw-r--r-- | ruby.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -212,7 +212,7 @@ ruby_incpush(path) #define LOAD_RELATIVE 1 #endif -#ifdef DOSISH +#if defined DOSISH || defined __CYGWIN__ static inline void translate_char _((char *, int, int)); static inline void @@ -260,7 +260,7 @@ ruby_init_loadpath() #endif libpath[FILENAME_MAX] = '\0'; -#ifdef DOSISH +#if defined DOSISH || defined __CYGWIN__ translate_char(libpath, '\\', '/'); #endif p = strrchr(libpath, '/'); @@ -755,7 +755,7 @@ proc_options(argc, argv) script = ruby_sourcefile = rb_source_filename(script); script_node = NEW_NEWLINE(0); } -#ifdef DOSISH +#if defined DOSISH || defined __CYGWIN__ translate_char(script, '\\', '/'); #endif argc--; argv++; |