wren-cli: Fix build on glibc >= 2.34 (#136)

* wren-cli: Fix build on glibc >= 2.34
This commit is contained in:
Michel Hermier
2022-04-08 17:09:23 -07:00
committed by GitHub
parent f615bb69ae
commit 1855363661
+2 -2
View File
@@ -241,7 +241,7 @@ static WrenForeignClassMethods bindForeignClass(
return methods;
}
static void write(WrenVM* vm, const char* text)
static void writeFn(WrenVM* vm, const char* text)
{
printf("%s", text);
}
@@ -274,7 +274,7 @@ static void initVM()
config.bindForeignClassFn = bindForeignClass;
config.resolveModuleFn = resolveModule;
config.loadModuleFn = loadModule;
config.writeFn = write;
config.writeFn = writeFn;
config.errorFn = reportError;
// Since we're running in a standalone process, be generous with memory.