diff --git a/ChangeLog b/ChangeLog index 5bfa533886f4ad..dceba29380eec9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Sun Jan 18 20:47:35 2004 WATANABE Hirofumi + + * ruby.c: use translate_char() on Cygwin. + Sun Jan 18 20:00:16 2004 NAKAMURA, Hiroshi * lib/soap/wsdlDriver.rb, lib/wsdl/soap/operation.rb: add support of diff --git a/ruby.c b/ruby.c index 2f0dceb697dd10..afe1e71ae803e6 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++;