fix strchr?

This commit is contained in:
Ethan Roseman 2023-10-27 17:45:42 +09:00
parent 02b7b717da
commit aebad970d5
No known key found for this signature in database
GPG Key ID: 27F9FCEB8E4969BD
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ static void *resolveByName(const char *name) {
if (strcmp(name, "setbuf") == 0) return (void *) msvcrt::setbuf;
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
if (strcmp(name, "exit") == 0) return (void *) exit;