]> granicus.if.org Git - nethack/commitdiff
PDCurses requires PDC_NCMOUSE for compatibility with ncurses
authornhmall <nhmall@nethack.org>
Fri, 28 Jun 2019 03:12:06 +0000 (23:12 -0400)
committernhmall <nhmall@nethack.org>
Fri, 28 Jun 2019 03:12:06 +0000 (23:12 -0400)
The PDC_NCMOUSE has to be defined on the command line
or above the #include entries in win/curses/cursmisc.c.

This does the former command line change.

include/wincurs.h
sys/winnt/Makefile.msc

index 79122430ddaffd61519d30322a53b46c27652297..127cd0faf3149db44054e183703983a4fa18e349 100644 (file)
@@ -38,12 +38,6 @@ extern WINDOW *mapwin, *statuswin, *messagewin;    /* Main windows  */
 #endif  /* !__APPLE__ && !PDCURSES */
 #define CURSES_DARK_GRAY    17
 #define MAP_SCROLLBARS
-#ifdef PDCURSES
-# define getmouse nc_getmouse
-# ifndef NCURSES_MOUSE_VERSION
-#  define NCURSES_MOUSE_VERSION
-# endif
-#endif
 
 #if !defined(A_LEFTLINE) && defined(A_LEFT)
 #define A_LEFTLINE A_LEFT
index d2dd884140297ce33501d6bc2d997ab79719b1ea..fb8cd9b7e745288d36f26e240eee27328e1a7720 100644 (file)
@@ -634,7 +634,7 @@ DLB =
 #==========================================
 
 {$(WCURSES)}.c{$(OBJ)}.o:
-       @$(cc) $(PDCINCL) $(cflagsBuild)  -Fo$@ $<
+       @$(cc) -DPDC_NCMOUSE $(PDCINCL) $(cflagsBuild)  -Fo$@ $<
 
 #{$(WCURSES)}.txt{$(DAT)}.txt:
 #      @copy $< $@