mirror of https://github.com/decompals/wibo.git
fix strchr?
This commit is contained in:
parent
02b7b717da
commit
aebad970d5
|
@ -107,7 +107,7 @@ static void *resolveByName(const char *name) {
|
||||||
if (strcmp(name, "setbuf") == 0) return (void *) msvcrt::setbuf;
|
if (strcmp(name, "setbuf") == 0) return (void *) msvcrt::setbuf;
|
||||||
if (strcmp(name, "_spawnvp") == 0) return (void *) msvcrt::_spawnvp;
|
if (strcmp(name, "_spawnvp") == 0) return (void *) msvcrt::_spawnvp;
|
||||||
|
|
||||||
char* (*wibo_strchr)(char* str, int c) = strchr;
|
const char* (*wibo_strchr)(const char* str, int c) = strchr;
|
||||||
|
|
||||||
// 1:1 mappings with linux funcs
|
// 1:1 mappings with linux funcs
|
||||||
if (strcmp(name, "exit") == 0) return (void *) exit;
|
if (strcmp(name, "exit") == 0) return (void *) exit;
|
||||||
|
|
Loading…
Reference in New Issue