summaryrefslogtreecommitdiff
path: root/dir.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-09-04 08:50:31 (GMT)
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-09-04 08:50:31 (GMT)
commit68f55c4b35a70f97c8d7ea6fde91f56a94d74f49 (patch)
treeb3b4930d691267b7b1f58837a89fbff9c5dc236b /dir.c
parent1e55b27e2cd2b94ca08ecb7bce5eab3a7b5e1f6f (diff)
* dir.c (glob_helper): use #ifdef instead of #if.
gcc's -Wundef option shows warning for undefined macro. * numeric.c (flo_is_finite_p): ditto. * vm_dump.c (rb_vmdebug_thread_dump_state): ditto. * vm_core.h: define VM_DEBUG_VERIFY_METHOD_CACHE to 0. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'dir.c')
-rw-r--r--dir.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dir.c b/dir.c
index e99aded..b915c4b 100644
--- a/dir.c
+++ b/dir.c
@@ -1405,11 +1405,11 @@ glob_helper(
if (magical || recursive) {
struct dirent *dp;
DIR *dirp;
-# if DOSISH
+# ifdef DOSISH
char *plainname = 0;
# endif
IF_HAVE_HFS(int hfs_p);
-# if DOSISH
+# ifdef DOSISH
if (cur + 1 == end && (*cur)->type <= ALPHA) {
plainname = join_path(path, pathlen, dirsep, (*cur)->str, strlen((*cur)->str));
if (!plainname) return -1;