From: nhmall Date: Mon, 5 Oct 2020 00:14:45 +0000 (-0400) Subject: unixmain and libnethackmain diverged in the updated PR X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7bf5172f2ee0de175122412df071daf94a2ca683;p=nethack unixmain and libnethackmain diverged in the updated PR put unixmain back the way it was, now that libnethackmain is in the tree after all. --- diff --git a/sys/unix/unixmain.c b/sys/unix/unixmain.c index 6c1f67b56..87e255064 100644 --- a/sys/unix/unixmain.c +++ b/sys/unix/unixmain.c @@ -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 -/* 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[];