From: Feiyun Wang Date: Wed, 19 Jan 2022 19:26:49 +0000 (+0800) Subject: Fix mingw32 building errors. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3de2b825b04ffb798895bfcfdc22fc100f94d7b9;p=nethack Fix mingw32 building errors. --- diff --git a/sys/windows/stubs.c b/sys/windows/stubs.c index 893d838a7..e49794731 100644 --- a/sys/windows/stubs.c +++ b/sys/windows/stubs.c @@ -10,7 +10,6 @@ #error You cannot compile this with both GUISTUB and TTYSTUB defined. #endif -int GUILaunched; struct window_procs mswin_procs = { "-guistubs" }; #ifdef QT_GRAPHICS @@ -60,7 +59,6 @@ main(int argc, char *argv[]) HANDLE hConIn; HANDLE hConOut; -int GUILaunched; struct window_procs tty_procs = { "-ttystubs" }; #ifdef CURSES_GRAPHICS char erase_char, kill_char; diff --git a/sys/windows/windsys.c b/sys/windows/windsys.c index f72537c76..d0cef911a 100644 --- a/sys/windows/windsys.c +++ b/sys/windows/windsys.c @@ -45,7 +45,7 @@ boolean win32_cursorblink; HANDLE ffhandle = (HANDLE) 0; WIN32_FIND_DATA ffd; extern int GUILaunched; -boolean getreturn_enabled; +extern boolean getreturn_enabled; int redirect_stdout; typedef HWND(WINAPI *GETCONSOLEWINDOW)(); diff --git a/win/win32/NetHackW.c b/win/win32/NetHackW.c index 82329d678..920fdfad0 100644 --- a/win/win32/NetHackW.c +++ b/win/win32/NetHackW.c @@ -63,7 +63,7 @@ _nhapply_image_transparent(HDC hDC, int x, int y, int width, int height, // Global Variables: NHWinApp _nethack_app; -extern int GUILaunched; /* We tell shared startup code in windmain.c +int GUILaunched = TRUE; /* We tell shared startup code in windmain.c that the GUI was launched via this */ #ifdef __BORLANDC__