mruby.c: rindex() is not supported by VC.

This commit is contained in:
Yukihiro "Matz" Matsumoto
2022-02-06 22:44:02 +09:00
parent d42a64eadf
commit e24e81cd3c
+1 -1
View File
@@ -66,7 +66,7 @@ usage(const char *name)
static mrb_bool
mrb_extension_p(const char *path)
{
const char *e = rindex(path, '.');
const char *e = strrchr(path, '.');
if (e && e[1] == 'm' && e[2] == 'r' && e[3] == 'b' && e[4] == '\0') {
return TRUE;
}