# HG changeset patch # User John "Elwin" Edwards # Date 1438636602 14400 # Node ID fb25a62680c79b67819068dd1a74e564f52494b3 # Parent f4f6734771e0930139a89828346c55eb86b5e747 srogue: clean up configuration in mdport.c. curses.h is already included in rogue.h and doesn't need to be included twice more in mdport.c. Also set flags for some features when they are present. diff -r f4f6734771e0 -r fb25a62680c7 srogue/mdport.c --- a/srogue/mdport.c Mon Aug 03 09:27:43 2015 -0400 +++ b/srogue/mdport.c Mon Aug 03 17:16:42 2015 -0400 @@ -42,9 +42,9 @@ #pragma warning( default: 4201 ) #include #undef MOUSE_MOVED +#define HAVE_PROCESS_H #endif -#include #include "rogue.h" #if defined(HAVE_SYS_TYPES) @@ -81,8 +81,6 @@ #endif #endif -#include /* AIX requires curses.h be included before term.h */ - #if defined(HAVE_TERM_H) #include #elif defined(HAVE_NCURSES_TERM_H) diff -r f4f6734771e0 -r fb25a62680c7 srogue/rogue.h --- a/srogue/rogue.h Mon Aug 03 09:27:43 2015 -0400 +++ b/srogue/rogue.h Mon Aug 03 17:16:42 2015 -0400 @@ -29,6 +29,9 @@ #ifdef HAVE_CONFIG_H #include "config.h" +#elif defined(_WIN32) && defined(__PDCURSES__) +#define HAVE_ERASECHAR +#define HAVE_KILLCHAR #endif /* mdport functions */