From 7c7f29a2e3cc69d1a498d56dc9286b03ef2d1ff7 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 | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/sys/winnt/Makefile.msc b/sys/winnt/Makefile.msc index fb8cd9b7e..00c5cd99a 100644 --- a/sys/winnt/Makefile.msc +++ b/sys/winnt/Makefile.msc @@ -634,7 +634,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 5494094fd..9d03bf187 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) @@ -267,4 +267,4 @@ - \ No newline at end of file +