diff --git a/sys/share/pcsys.c b/sys/share/pcsys.c index 59a78b927..0286ad50b 100644 --- a/sys/share/pcsys.c +++ b/sys/share/pcsys.c @@ -501,15 +501,6 @@ int code; exit(code); } -#ifdef WIN32 -#ifndef TTY_GRAPHICS -void -synch_cursor() -{ -} -#endif -#endif - /* Chdir back to original directory */ #ifdef TOS diff --git a/sys/winnt/winnt.c b/sys/winnt/winnt.c index 451aae2f0..966b268e0 100644 --- a/sys/winnt/winnt.c +++ b/sys/winnt/winnt.c @@ -4,6 +4,8 @@ /* * WIN32 system functions. + * + * Included in both console and window based clients on the windows platform. * * Initial Creation: Michael Allison - January 31/93 * @@ -229,15 +231,6 @@ Delay(int ms) (void) Sleep(ms); } -#ifdef TTY_GRAPHICS -extern void NDECL(backsp); -#else -void -backsp() -{ -} -#endif - void win32_abort() { @@ -250,9 +243,13 @@ win32_abort() msmsg("Execute debug breakpoint wizard?"); while ((ci = nhgetch()) != '\n') { if (ct > 0) { +#ifdef TTY_GRAPHICS backsp(); /* \b is visible on NT */ +#endif (void) putchar(' '); +#ifdef TTY_GRAPHICS backsp(); +#endif ct = 0; c = 'n'; } diff --git a/win/win32/vs2017/NetHackW.vcxproj b/win/win32/vs2017/NetHackW.vcxproj index 450210b81..d93276e83 100644 --- a/win/win32/vs2017/NetHackW.vcxproj +++ b/win/win32/vs2017/NetHackW.vcxproj @@ -20,7 +20,7 @@ Disabled true $(WinWin32Dir);$(IncDir);$(SysWinntDir);$(SysShareDir);$(WinShareDir);%(AdditionalIncludeDirectories) - TILES;_WINDOWS;DLB;MSWIN_GRAPHICS;WIN32CONNDEBUG;%(PreprocessorDefinitions) + TILES;_WINDOWS;DLB;MSWIN_GRAPHICS;NOTTYGRAPHICS;%(PreprocessorDefinitions) NDEBUG;%(PreprocessorDefinitions)