ruby-changes:48045
From: nobu <ko1@a...>
Date: Wed, 11 Oct 2017 13:45:13 +0900 (JST)
Subject: [ruby-changes:48045] nobu:r60159 (trunk): file.c: ALT_SEPARATOR on cygwin
nobu 2017-10-11 13:45:08 +0900 (Wed, 11 Oct 2017) New Revision: 60159 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60159 Log: file.c: ALT_SEPARATOR on cygwin * file.c (file_alt_separator): define only on DOSISH platforms. File::ALT_SEPARATOR is nil on cygwin. Modified files: trunk/file.c Index: file.c =================================================================== --- file.c (revision 60158) +++ file.c (revision 60159) @@ -2991,7 +2991,9 @@ rb_file_s_umask(int argc, VALUE *argv) https://github.com/ruby/ruby/blob/trunk/file.c#L2991 #endif #ifdef FILE_ALT_SEPARATOR #define isdirsep(x) ((x) == '/' || (x) == FILE_ALT_SEPARATOR) +# ifdef DOSISH static const char file_alt_separator[] = {FILE_ALT_SEPARATOR, '\0'}; +# endif #else #define isdirsep(x) ((x) == '/') #endif -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/