Skip to content

Commit 7fe18a1

Browse files
committed
Fix signature mismatch in standalone.c. NFC
See #18285
1 parent 7c9b97a commit 7fe18a1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

system/lib/standalone/standalone.c

+3-2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
#include <emscripten.h>
2121
#include <emscripten/heap.h>
22+
#include <emscripten/console.h>
2223
#include <wasi/api.h>
2324
#include <wasi/wasi-helpers.h>
2425

@@ -218,9 +219,9 @@ static void wasi_writeln(__wasi_fd_t fd, char* buffer) {
218219
imported__wasi_fd_write(fd, iovs, 2, &nwritten);
219220
}
220221

221-
void _emscripten_out(char* text) { wasi_writeln(1, text); }
222+
void _emscripten_out(const char* text) { wasi_writeln(1, text); }
222223

223-
void _emscripten_err(char* text) { wasi_writeln(2, text); }
224+
void _emscripten_err(const char* text) { wasi_writeln(2, text); }
224225

225226
// In the non-standalone build we define this helper function in JS to avoid
226227
// signture mismatch issues.

0 commit comments

Comments
 (0)