From be94808d67f58eead51c741e27b7cd8897312f31 Mon Sep 17 00:00:00 2001 From: nhmall Date: Fri, 28 Jun 2019 18:59:06 -0400 Subject: [PATCH] build fix for Windows if pdcurses is included after recent changes cursmain.o : error LNK2001: unresolved external symbol _erase_char cursmesg.o : error LNK2001: unresolved external symbol _erase_char cursmain.o : error LNK2001: unresolved external symbol _kill_char cursmesg.o : error LNK2001: unresolved external symbol _kill_char --- sys/winnt/Makefile.msc | 3 ++- win/win32/vs2017/NetHack.vcxproj | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/winnt/Makefile.msc b/sys/winnt/Makefile.msc index cf6374e5e..0038e12ab 100644 --- a/sys/winnt/Makefile.msc +++ b/sys/winnt/Makefile.msc @@ -648,7 +648,8 @@ DLB = #========================================== {$(WCURSES)}.c{$(OBJ)}.o: - @$(cc) -DPDC_NCMOUSE $(PDCINCL) $(cflagsBuild) -Fo$@ $< + @$(cc) -DPDC_NCMOUSE -DCURSES_DEFINE_ERASE_CHAR \ + $(PDCINCL) $(cflagsBuild) -Fo$@ $< #{$(WCURSES)}.txt{$(DAT)}.txt: # @copy $< $@ diff --git a/win/win32/vs2017/NetHack.vcxproj b/win/win32/vs2017/NetHack.vcxproj index cfa359be4..44329ac77 100644 --- a/win/win32/vs2017/NetHack.vcxproj +++ b/win/win32/vs2017/NetHack.vcxproj @@ -31,7 +31,7 @@ $(PDCURSES);%(AdditionalIncludeDirectories) - CURSES_GRAPHICS;CHTYPE_32;%(PreprocessorDefinitions) + CURSES_GRAPHICS;CHTYPE_32;PDC_NCMOUSE;CURSES_DEFINE_ERASE_CHAR;%(PreprocessorDefinitions) $(ToolsDir)