From 9ec886372beba0017c2633f94ec88fabf63e6ebf Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 12 Oct 2016 08:24:36 +0000 Subject: ruby.c: fix macros * ruby.c (open_load_file): FILE_ALT_SEPARATOR and EXEEXT are config.status variables, not available in config.h. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56400 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ruby.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ruby.c') diff --git a/ruby.c b/ruby.c index 287e22aaaa..9f94591b46 100644 --- a/ruby.c +++ b/ruby.c @@ -1890,9 +1890,9 @@ open_load_file(VALUE fname_v, int *xflag) #endif MODE_TO_LOAD; #if defined DOSISH || defined __CYGWIN__ -# define isdirsep(x) ((x) == '/' || (x) == FILE_ALT_SEPARATOR) +# define isdirsep(x) ((x) == '/' || (x) == '\\') { - static const char exeext[] = EXEEXT; + static const char exeext[] = ".exe"; enum {extlen = sizeof(exeext)-1}; if (flen > extlen && !isdirsep(fname[flen-extlen-1]) && STRNCASECMP(fname+flen-extlen, exeext, extlen) == 0) { -- cgit v1.2.3