changeset 191:fb25a62680c7

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.
author John "Elwin" Edwards
date Mon, 03 Aug 2015 17:16:42 -0400
parents f4f6734771e0
children 3de8058dd549
files srogue/mdport.c srogue/rogue.h
diffstat 2 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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 <Shlwapi.h>
 #undef MOUSE_MOVED
+#define HAVE_PROCESS_H
 #endif
 
-#include <curses.h>
 #include "rogue.h"
 
 #if defined(HAVE_SYS_TYPES)
@@ -81,8 +81,6 @@
 #endif
 #endif
 
-#include <curses.h> /* AIX requires curses.h be included before term.h */
-
 #if defined(HAVE_TERM_H)
 #include <term.h>
 #elif defined(HAVE_NCURSES_TERM_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 */