more gcc work for Windows

tty builds and executes
curses builds but crashes

gui - not even trying right now
This commit is contained in:
nhmall
2018-11-30 20:17:42 -05:00
parent c0897f2f0d
commit 802c22ed98
2 changed files with 6 additions and 6 deletions

View File

@@ -29,6 +29,7 @@ mswin_destroy_reg()
*/
#ifdef __MINGW32__
extern char default_window_sys[];
extern int mingw_main(int argc, char **argv);
int
main(argc, argv)
@@ -37,10 +38,7 @@ char *argv[];
{
boolean resuming;
sys_early_init();
Strcpy(default_window_sys, "tty");
resuming = pcmain(argc, argv);
moveloop(resuming);
resuming = mingw_main(argc, argv);
nethack_exit(EXIT_SUCCESS);
/*NOTREACHED*/
return 0;