Skip to content

Commit 1855363

Browse files
authoredApr 9, 2022
wren-cli: Fix build on glibc >= 2.34 (#136)
* wren-cli: Fix build on glibc >= 2.34
1 parent f615bb6 commit 1855363

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/cli/vm.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ static WrenForeignClassMethods bindForeignClass(
241241
return methods;
242242
}
243243

244-
static void write(WrenVM* vm, const char* text)
244+
static void writeFn(WrenVM* vm, const char* text)
245245
{
246246
printf("%s", text);
247247
}
@@ -274,7 +274,7 @@ static void initVM()
274274
config.bindForeignClassFn = bindForeignClass;
275275
config.resolveModuleFn = resolveModule;
276276
config.loadModuleFn = loadModule;
277-
config.writeFn = write;
277+
config.writeFn = writeFn;
278278
config.errorFn = reportError;
279279

280280
// Since we're running in a standalone process, be generous with memory.

0 commit comments

Comments
 (0)
Please sign in to comment.