MINGW: Reorder windows include files to avoid future complications

This commit is contained in:
Mark Pizzolato 2018-02-12 20:48:39 -08:00
parent 2b9ce757fd
commit ce8aea13bc
5 changed files with 3 additions and 4 deletions

View file

@ -41,6 +41,7 @@
#if defined(_WIN32)
#include <windows.h>
#include <winerror.h>
#define usleep(n) Sleep(n/1000)
#else
#include <unistd.h>

View file

@ -3285,7 +3285,6 @@ return SCPE_OK;
#include <fcntl.h>
#include <io.h>
#include <windows.h>
#define RAW_MODE 0
static HANDLE std_input;
static HANDLE std_output;

View file

@ -127,6 +127,7 @@ extern int sim_vax_snprintf(char *buf, size_t buf_size, const char *fmt, ...);
#ifdef _WIN32
#include <winsock2.h>
#include <windows.h>
#include <winerror.h>
#undef PACKED /* avoid macro name collision */
#undef ERROR /* avoid macro name collision */

View file

@ -80,9 +80,6 @@ Internal routines:
#include <ctype.h>
#include <sys/stat.h>
#ifdef _WIN32
#include <windows.h>
#endif
#if defined SIM_ASYNCH_IO
#include <pthread.h>
#endif

View file

@ -63,6 +63,7 @@ extern "C" {
#if defined(_WIN32)
#include <process.h>
#include <windows.h>
#include <winerror.h>
#define sleep(n) Sleep(n*1000)
#define msleep(n) Sleep(n)
#define strtoull _strtoui64