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 | 21f1b89b9d341e956321bd6bd09dada4ae83c7d2 (patch) | |
tree | e05e37171c589c27aec8f65404718b7dfebf5183 /ruby.c | |
parent | 2e5fffa7cf8ca1047c26ea8b3d98d2f1d8f11dcf (diff) | |
download | ruby-21f1b89b9d341e956321bd6bd09dada4ae83c7d2.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) { |