From ce8aea13bc5252ffafe78e6e38a32c140eef8087 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Mon, 12 Feb 2018 20:48:39 -0800 Subject: [PATCH] MINGW: Reorder windows include files to avoid future complications --- frontpanel/FrontPanelTest.c | 1 + sim_console.c | 1 - sim_defs.h | 1 + sim_disk.c | 3 --- sim_frontpanel.c | 1 + 5 files changed, 3 insertions(+), 4 deletions(-) diff --git a/frontpanel/FrontPanelTest.c b/frontpanel/FrontPanelTest.c index 97f60078..d64bef02 100644 --- a/frontpanel/FrontPanelTest.c +++ b/frontpanel/FrontPanelTest.c @@ -41,6 +41,7 @@ #if defined(_WIN32) #include +#include #define usleep(n) Sleep(n/1000) #else #include diff --git a/sim_console.c b/sim_console.c index cdd2c90a..14aab8ee 100644 --- a/sim_console.c +++ b/sim_console.c @@ -3285,7 +3285,6 @@ return SCPE_OK; #include #include -#include #define RAW_MODE 0 static HANDLE std_input; static HANDLE std_output; diff --git a/sim_defs.h b/sim_defs.h index ecbd5109..fd24e958 100644 --- a/sim_defs.h +++ b/sim_defs.h @@ -127,6 +127,7 @@ extern int sim_vax_snprintf(char *buf, size_t buf_size, const char *fmt, ...); #ifdef _WIN32 #include +#include #include #undef PACKED /* avoid macro name collision */ #undef ERROR /* avoid macro name collision */ diff --git a/sim_disk.c b/sim_disk.c index 5a9d779c..b8374a3c 100644 --- a/sim_disk.c +++ b/sim_disk.c @@ -80,9 +80,6 @@ Internal routines: #include #include -#ifdef _WIN32 -#include -#endif #if defined SIM_ASYNCH_IO #include #endif diff --git a/sim_frontpanel.c b/sim_frontpanel.c index e6a3ab92..ed41f782 100644 --- a/sim_frontpanel.c +++ b/sim_frontpanel.c @@ -63,6 +63,7 @@ extern "C" { #if defined(_WIN32) #include #include +#include #define sleep(n) Sleep(n*1000) #define msleep(n) Sleep(n) #define strtoull _strtoui64