Fix mingw32 building errors.

This commit is contained in:
Feiyun Wang
2022-01-20 03:26:49 +08:00
committed by nhmall
parent 4b4070fb57
commit 3de2b825b0
3 changed files with 2 additions and 4 deletions

View 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;

View 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)();

View 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__