Mercurial > hg > early-roguelike
comparison srogue/mdport.c @ 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 | 3d4252fa2ed3 |
comparison
equal
deleted
inserted
replaced
190:f4f6734771e0 | 191:fb25a62680c7 |
---|---|
40 #pragma warning( disable: 4201 ) | 40 #pragma warning( disable: 4201 ) |
41 #include <shlobj.h> | 41 #include <shlobj.h> |
42 #pragma warning( default: 4201 ) | 42 #pragma warning( default: 4201 ) |
43 #include <Shlwapi.h> | 43 #include <Shlwapi.h> |
44 #undef MOUSE_MOVED | 44 #undef MOUSE_MOVED |
45 #endif | 45 #define HAVE_PROCESS_H |
46 | 46 #endif |
47 #include <curses.h> | 47 |
48 #include "rogue.h" | 48 #include "rogue.h" |
49 | 49 |
50 #if defined(HAVE_SYS_TYPES) | 50 #if defined(HAVE_SYS_TYPES) |
51 #include <sys/types.h> | 51 #include <sys/types.h> |
52 #endif | 52 #endif |
78 #undef __USE_GNU | 78 #undef __USE_GNU |
79 #else | 79 #else |
80 #include <unistd.h> | 80 #include <unistd.h> |
81 #endif | 81 #endif |
82 #endif | 82 #endif |
83 | |
84 #include <curses.h> /* AIX requires curses.h be included before term.h */ | |
85 | 83 |
86 #if defined(HAVE_TERM_H) | 84 #if defined(HAVE_TERM_H) |
87 #include <term.h> | 85 #include <term.h> |
88 #elif defined(HAVE_NCURSES_TERM_H) | 86 #elif defined(HAVE_NCURSES_TERM_H) |
89 #include <ncurses/term.h> | 87 #include <ncurses/term.h> |