From 8ed4905a90a32d5d1e10e22ecda69e5bdc3b038d Mon Sep 17 00:00:00 2001 From: eban Date: Sun, 18 Jan 2004 11:49:46 +0000 Subject: * ruby.c: use translate_char() on Cygwin. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5490 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ruby.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ruby.c') diff --git a/ruby.c b/ruby.c index 2f0dceb69..afe1e71ae 100644 --- a/ruby.c +++ b/ruby.c @@ -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++; -- cgit