From 4bd72ac69f24ccf0c1759c94788fa3eb08213d5f Mon Sep 17 00:00:00 2001 From: "John \"Elwin\" Edwards" Date: Fri, 31 Jul 2015 20:01:44 -0400 Subject: [PATCH] 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. --- rogue4/mdport.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rogue4/mdport.c b/rogue4/mdport.c index 28f26b1..102bba4 100644 --- a/rogue4/mdport.c +++ b/rogue4/mdport.c @@ -36,7 +36,6 @@ #if defined(_WIN32) #include #include -#include #include #include #include @@ -73,6 +72,10 @@ char *strdup(const char *s); #include #endif +#if defined(_WIN32) +#include +#endif + #include #include #include