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

parent d42a64ea
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment