aboutsummaryrefslogtreecommitdiffstats
path: root/ruby.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-10-12 08:24:36 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-10-12 08:24:36 +0000
commit9ec886372beba0017c2633f94ec88fabf63e6ebf (patch)
treee05e37171c589c27aec8f65404718b7dfebf5183 /ruby.c
parenta19c2617c0629fceeba530f332bca10da210a0dc (diff)
downloadruby-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.c4
1 files changed, 2 insertions, 2 deletions
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) {