summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authorxtkoba <69125751+xtkoba@users.noreply.github.com>2021-05-09 10:32:11 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-10-03 11:06:24 +0900
commitc5ff9544107796fee2a6cccafdd1da5181e53b87 (patch)
treec3cc77d21c67a1fda7a4995bb87a06844c363be9 /file.c
parent842673240bb949f698bdc2bfd814441d5c7791ac (diff)
Get rid of unused function warning for `_WIN32`
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4482
Diffstat (limited to 'file.c')
-rw-r--r--file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/file.c b/file.c
index 626043816f0..10da7030594 100644
--- a/file.c
+++ b/file.c
@@ -3355,7 +3355,6 @@ getcwdofdrv(int drv)
}
return drvcwd;
}
-#endif
static inline int
not_same_drive(VALUE path, int drive)
@@ -3370,6 +3369,7 @@ not_same_drive(VALUE path, int drive)
}
}
#endif
+#endif
static inline char *
skiproot(const char *path, const char *end, rb_encoding *enc)