comparison rogue4/mdport.c @ 181:d53b13637783

rogue4: rearrange some includes. Using MSVC with pdcurses, curses.h has to be included after windows.h and before process.h. This is apparently because bool is now a built-in type which pdcurses is not allowed to redefine. But I don't entirely understand how the headers are interacting, and I don't think the MSDN page does either.
author John "Elwin" Edwards
date Fri, 31 Jul 2015 20:01:44 -0400
parents 600873555ec0
children 1b73a8641b37
comparison
equal deleted inserted replaced
180:d9e44e18eeec 181:d53b13637783
34 #endif 34 #endif
35 35
36 #if defined(_WIN32) 36 #if defined(_WIN32)
37 #include <Windows.h> 37 #include <Windows.h>
38 #include <Lmcons.h> 38 #include <Lmcons.h>
39 #include <process.h>
40 #include <shlobj.h> 39 #include <shlobj.h>
41 #include <sys/types.h> 40 #include <sys/types.h>
42 #include <io.h> 41 #include <io.h>
43 #include <conio.h> 42 #include <conio.h>
44 #undef MOUSE_MOVED 43 #undef MOUSE_MOVED
69 #endif 68 #endif
70 69
71 #include <curses.h> 70 #include <curses.h>
72 #ifdef HAVE_TERM_H 71 #ifdef HAVE_TERM_H
73 #include <term.h> 72 #include <term.h>
73 #endif
74
75 #if defined(_WIN32)
76 #include <process.h>
74 #endif 77 #endif
75 78
76 #include <stdio.h> 79 #include <stdio.h>
77 #include <fcntl.h> 80 #include <fcntl.h>
78 #include <limits.h> 81 #include <limits.h>