Fixes.
h3rald h3rald@h3rald.com
Sat, 07 Dec 2024 19:47:38 +0100
M
Makefile
→
Makefile
@@ -6,7 +6,7 @@ hex: hex.c
$(CC) $(CFLAGS) $(LDFLAGS) $< -o hex web/assets/hex.wasm: hex.c - emcc -O2 -sASYNCIFY -sEXPORTED_RUNTIME_METHODS=stringToUTF8 hex.c -o web/assets/hex.js --pre-js web/assets/hex-playground.js + emcc -O2 -sASYNCIFY -DBROWSER -sEXPORTED_RUNTIME_METHODS=stringToUTF8 hex.c -o web/assets/hex.js --pre-js web/assets/hex-playground.js hex.wasm: hex.c emcc -O2 -sASYNCIFY -sEXPORTED_RUNTIME_METHODS=stringToUTF8 hex.c -o hex.js --pre-js hex.node.js
M
hex.c
→
hex.c
@@ -3884,13 +3884,12 @@ fclose(file);
return content; } -#if defined(BROWSER) && defined(__EMSCRIPTEN__) +#if defined(__EMSCRIPTEN__) && defined(BROWSER) static void prompt() { - printf(">>\n"); // no prompt needed on browser } -#elif !defined(BROWSER) && defined(__EMSCRIPTEN__) +#elif defined(__EMSCRIPTEN__) && !defined(BROWSER) static void prompt() { printf(">\n");