]> granicus.if.org Git - nethack/commitdiff
unixmain and libnethackmain diverged in the updated PR
authornhmall <nhmall@nethack.org>
Mon, 5 Oct 2020 00:14:45 +0000 (20:14 -0400)
committernhmall <nhmall@nethack.org>
Mon, 5 Oct 2020 00:14:45 +0000 (20:14 -0400)
put unixmain back the way it was, now that libnethackmain is in the tree after all.

sys/unix/unixmain.c

index 6c1f67b5646870a7ede4d45d4ae14f8a11611be5..87e2550648aed0ce6db8972ce4737f5fe7e2578a 100644 (file)
@@ -45,17 +45,7 @@ static void NDECL(wd_message);
 static boolean wiz_error_flag = FALSE;
 static struct passwd *NDECL(get_unix_pw);
 
-#if defined(CROSSCOMPILE_TARGET) && defined(CROSS_TO_WASM)
-/* for cross-compiling to WebAssembly (WASM) */
-#include <emscripten/emscripten.h>
-/* if WebAssembly, export this API and don't optimize it out */
-#define KEEP EMSCRIPTEN_KEEPALIVE
-#else
-#define KEEP
-#endif
-
-
-int KEEP
+int
 main(argc, argv)
 int argc;
 char *argv[];