win32gui build fix (from <Someone>)

<Someone> wrote:
> Using the MCVS IDE I couldn't compile NetHack any longer, due to a
> misplaced #endif and a library not included in the DSP file.
> Here's a patch for both problems for 3.5.0.
> The 3.4.x verison only suffered from the first problem. Patch also
> attached.
This commit is contained in:
nethack.allison
2003-10-25 14:45:51 +00:00
parent 58f322841d
commit fa8956dbb9
2 changed files with 5 additions and 6 deletions
+3 -4
View File
@@ -198,7 +198,6 @@ return &szFullPath[0];
/* fatal error */
/*VARARGS1*/
void
error VA_DECL(const char *,s)
VA_START(s);
@@ -218,7 +217,6 @@ error VA_DECL(const char *,s)
VA_END();
exit(EXIT_FAILURE);
}
void Delay(int ms)
{
(void)Sleep(ms);
@@ -231,9 +229,10 @@ extern void NDECL(backsp);
void win32_abort()
{
#ifdef WIZARD
int c, ci, ct;
if (wizard) {
# ifdef WIN32CON
int c, ci, ct;
if (!iflags.window_inited)
c = 'n';
ct = 0;
@@ -254,8 +253,8 @@ void win32_abort()
}
if (c == 'y')
DebugBreak();
}
# endif
}
#endif
abort();
}