# HG changeset patch # User John "Elwin" Edwards # Date 1438387304 14400 # Node ID d53b13637783e1b9985ccec57ef5ef3ef8993ec8 # Parent d9e44e18eeec2f7c322f99c903678f43927bdcb2 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. diff -r d9e44e18eeec -r d53b13637783 rogue4/mdport.c --- 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 #include -#include #include #include #include @@ -73,6 +72,10 @@ #include #endif +#if defined(_WIN32) +#include +#endif + #include #include #include