From b53f9528f3507c23ec8f218bc63188abf8a598dd Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 7 Feb 2015 00:11:02 +0000 Subject: 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 --- dir.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dir.c b/dir.c index 041d88af08..88cd241e1d 100644 --- a/dir.c +++ b/dir.c @@ -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); -- cgit v1.2.3