From 3b34109c9344f29a408d8f7399b0366e06ff467f Mon Sep 17 00:00:00 2001 From: "John \"Elwin\" Edwards" Date: Mon, 3 Aug 2015 17:16:42 -0400 Subject: [PATCH] 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. --- srogue/mdport.c | 4 +--- srogue/rogue.h | 3 +++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/srogue/mdport.c b/srogue/mdport.c index 94a216d..656e115 100644 --- a/srogue/mdport.c +++ b/srogue/mdport.c @@ -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 --git a/srogue/rogue.h b/srogue/rogue.h index aa3eec6..ccb05e1 100644 --- a/srogue/rogue.h +++ b/srogue/rogue.h @@ -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 */