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.
This commit is contained in:
parent
00142507db
commit
3b34109c93
2 changed files with 4 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue