From 690175272335ecc8a7a177de91c2e7f49c662846 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Sat, 7 Mar 2020 19:03:45 +0900 Subject: Use in-house macro `ISALPHA` instead of `isalpha`; ref #4950 --- mrbgems/mruby-io/src/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mrbgems/mruby-io/src/file.c b/mrbgems/mruby-io/src/file.c index ffce0ddcb..3f3b6bb25 100644 --- a/mrbgems/mruby-io/src/file.c +++ b/mrbgems/mruby-io/src/file.c @@ -284,7 +284,7 @@ mrb_file_is_absolute_path(const char *path) { #ifdef _WIN32 #define IS_PATHSEP(x) (x == '/' || x == '\\') - if (isalpha(path[0])) + if (ISALPHA(path[0])) return (strlen(path) > 2 && path[1] == ':' && IS_PATHSEP(path[2])); else return (IS_PATHSEP(path[0]) && IS_PATHSEP(path[1])); -- cgit v1.2.3