mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
mruby.c: rindex() is not supported by VC.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user