We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c9b97a commit 7fe18a1Copy full SHA for 7fe18a1
system/lib/standalone/standalone.c
@@ -19,6 +19,7 @@
19
20
#include <emscripten.h>
21
#include <emscripten/heap.h>
22
+#include <emscripten/console.h>
23
#include <wasi/api.h>
24
#include <wasi/wasi-helpers.h>
25
@@ -218,9 +219,9 @@ static void wasi_writeln(__wasi_fd_t fd, char* buffer) {
218
219
imported__wasi_fd_write(fd, iovs, 2, &nwritten);
220
}
221
-void _emscripten_out(char* text) { wasi_writeln(1, text); }
222
+void _emscripten_out(const char* text) { wasi_writeln(1, text); }
223
-void _emscripten_err(char* text) { wasi_writeln(2, text); }
224
+void _emscripten_err(const char* text) { wasi_writeln(2, text); }
225
226
// In the non-standalone build we define this helper function in JS to avoid
227
// signture mismatch issues.
0 commit comments