]> granicus.if.org Git - nethack/commitdiff
Fix mingw32 building errors.
authorFeiyun Wang <feiyunw@yahoo.com>
Wed, 19 Jan 2022 19:26:49 +0000 (03:26 +0800)
committernhmall <nhmall@nethack.org>
Thu, 27 Jan 2022 23:33:52 +0000 (18:33 -0500)
sys/windows/stubs.c
sys/windows/windsys.c
win/win32/NetHackW.c

index 893d838a7dbd0f18047ddd7264a5ce30893530fb..e49794731af6256bff1c0c309553d987daff16a9 100644 (file)
@@ -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;
index f72537c7653bb3aad23c3a1684042693040f6a47..d0cef911a51666ecc78da737efdbf661e4c1d5c4 100644 (file)
@@ -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)();
index 82329d6782dcb8821c6d2a432da425bef121c308..920fdfad0a38dab116ee2aa97d73d11a586db6fa 100644 (file)
@@ -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__