Mercurial > hg > early-roguelike
comparison arogue5/mdport.c @ 108:2f41b9635c34
arogue5: use configure's checks to find term.h.
This should make the build process work on OS X.
| author | John "Elwin" Edwards |
|---|---|
| date | Sat, 07 Sep 2013 09:43:06 -0400 |
| parents | d4bf99f82ea0 |
| children | 65f3da34578a |
comparison
equal
deleted
inserted
replaced
| 107:f2951c4e28d9 | 108:2f41b9635c34 |
|---|---|
| 27 LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | 27 LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
| 28 OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 28 OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
| 29 SUCH DAMAGE. | 29 SUCH DAMAGE. |
| 30 */ | 30 */ |
| 31 | 31 |
| 32 #ifdef HAVE_CONFIG_H | |
| 33 #include "config.h" | |
| 34 #endif | |
| 35 | |
| 32 #if defined(_WIN32) | 36 #if defined(_WIN32) |
| 33 #include <Windows.h> | 37 #include <Windows.h> |
| 34 #include <Lmcons.h> | 38 #include <Lmcons.h> |
| 35 #include <process.h> | 39 #include <process.h> |
| 36 #include <shlobj.h> | 40 #include <shlobj.h> |
| 53 | 57 |
| 54 #include <curses.h> | 58 #include <curses.h> |
| 55 | 59 |
| 56 #if defined(__INTERIX) || defined(__MSYS__) | 60 #if defined(__INTERIX) || defined(__MSYS__) |
| 57 #include <term.h> | 61 #include <term.h> |
| 58 #else | 62 #elif defined(HAVE_NCURSES_TERM_H) |
| 59 #ifdef NCURSES_VERSION | |
| 60 #include <ncurses/term.h> | 63 #include <ncurses/term.h> |
| 61 #endif | 64 #else |
| 65 #include <term.h> | |
| 62 #endif | 66 #endif |
| 63 | 67 |
| 64 #include <stdio.h> | 68 #include <stdio.h> |
| 65 #include <fcntl.h> | 69 #include <fcntl.h> |
| 66 #include <limits.h> | 70 #include <limits.h> |
