From a3c203107171033dbe0aec1690151b5bfdbc70e2 Mon Sep 17 00:00:00 2001 From: Julien Schueller Date: Sun, 17 Mar 2019 09:18:18 +0100 Subject: [PATCH] Fix MinGW build Som Win32 includes are also needed on MinGW --- libdap2/dapcvt.c | 2 +- libdispatch/dwinpath.c | 1 + libsrc/memio.c | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/libdap2/dapcvt.c b/libdap2/dapcvt.c index c4dc3bc7b..dc3159ab8 100644 --- a/libdap2/dapcvt.c +++ b/libdap2/dapcvt.c @@ -5,7 +5,7 @@ #include "config.h" #include "dapincludes.h" -#ifdef _MSC_VER +#ifdef _WIN32 #include #include #endif diff --git a/libdispatch/dwinpath.c b/libdispatch/dwinpath.c index 6c6166ac3..4bb4bc1a0 100644 --- a/libdispatch/dwinpath.c +++ b/libdispatch/dwinpath.c @@ -8,6 +8,7 @@ #include #include #include +#include #ifdef HAVE_FCNTL_H #include #endif diff --git a/libsrc/memio.c b/libsrc/memio.c index 35bcd5738..8fa3ec265 100644 --- a/libsrc/memio.c +++ b/libsrc/memio.c @@ -17,7 +17,7 @@ #ifdef HAVE_FCNTL_H #include #endif -#ifdef _MSC_VER /* Microsoft Compilers */ +#ifdef _WIN32 #include #include #include