1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

dir.c: use USE_NAME_ON_FS

* dir.c (glob_helper): use USE_NAME_ON_FS instead of configure and
  platform macro list.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49533 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2015-02-07 00:11:02 +00:00
parent 461c38a973
commit b53f9528f3

4
dir.c
View file

@ -1562,7 +1562,7 @@ glob_helper(
plain = 1;
break;
case ALPHA:
#if defined HAVE_GETATTRLIST || defined _WIN32
#if USE_NAME_ON_FS == 1
plain = 1;
#else
magical = 1;
@ -1792,7 +1792,7 @@ glob_helper(
status = -1;
break;
}
#if defined HAVE_GETATTRLIST || defined _WIN32
#if USE_NAME_ON_FS == 1
if ((*cur)->type == ALPHA) {
long base = pathlen + (dirsep != 0);
buf = replace_real_basename(buf, base, enc, IF_NORMALIZE_UTF8PATH(1)+0);