summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-02-07 00:11:02 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-02-07 00:11:02 +0000
commitb53f9528f3507c23ec8f218bc63188abf8a598dd (patch)
tree65fb7e61103df90a270c89273669fe1fda48d2af
parent461c38a9737edda4baf909ef3993b588150c97b2 (diff)
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
-rw-r--r--dir.c4
1 files 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);