From 2ee4cdab98562d67083049efc0f0ed2c39d7d27d Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 11 Oct 2017 04:45:08 +0000 Subject: file.c: ALT_SEPARATOR on cygwin * file.c (file_alt_separator): define only on DOSISH platforms. File::ALT_SEPARATOR is nil on cygwin. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60159 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- file.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/file.c b/file.c index 7fad74508a..f8b424f2fc 100644 --- a/file.c +++ b/file.c @@ -2991,7 +2991,9 @@ rb_file_s_umask(int argc, VALUE *argv) #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 -- cgit v1.2.3