Mercurial > hg > early-roguelike
diff 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 |
line wrap: on
line diff
--- a/rogue4/mdport.c Fri Jul 31 15:34:34 2015 -0400 +++ b/rogue4/mdport.c Fri Jul 31 20:01:44 2015 -0400 @@ -36,7 +36,6 @@ #if defined(_WIN32) #include <Windows.h> #include <Lmcons.h> -#include <process.h> #include <shlobj.h> #include <sys/types.h> #include <io.h> @@ -73,6 +72,10 @@ #include <term.h> #endif +#if defined(_WIN32) +#include <process.h> +#endif + #include <stdio.h> #include <fcntl.h> #include <limits.h>