diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-10-12 08:24:36 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-10-12 08:24:36 +0000 |
commit | 9ec886372beba0017c2633f94ec88fabf63e6ebf (patch) | |
tree | e05e37171c589c27aec8f65404718b7dfebf5183 /ruby.c | |
parent | a19c2617c0629fceeba530f332bca10da210a0dc (diff) | |
download | ruby-9ec886372beba0017c2633f94ec88fabf63e6ebf.tar.gz |
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
Diffstat (limited to 'ruby.c')
-rw-r--r-- | ruby.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) { |