mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
2e5fffa7cf
commit
21f1b89b9d
1 changed files with 2 additions and 2 deletions
4
ruby.c
4
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) {
|
||||
|
|
Loading…
Reference in a new issue