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.
This commit is contained in:
parent
00d28d536a
commit
4bd72ac69f
1 changed files with 4 additions and 1 deletions
|
|
@ -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 @@ char *strdup(const char *s);
|
|||
#include <term.h>
|
||||
#endif
|
||||
|
||||
#if defined(_WIN32)
|
||||
#include <process.h>
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <fcntl.h>
|
||||
#include <limits.h>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue