aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--common/dynload.h4
-rw-r--r--common/exechelp-w32.c2
-rw-r--r--common/gettime.c4
-rw-r--r--common/utf8conv.c4
4 files changed, 13 insertions, 1 deletions
diff --git a/common/dynload.h b/common/dynload.h
index 54a47b219..f6ec8753b 100644
--- a/common/dynload.h
+++ b/common/dynload.h
@@ -34,7 +34,9 @@
#ifndef __MINGW32__
# include <dlfcn.h>
#else
-# include <windows.h>
+# include <errhandlingapi.h>
+# include <handleapi.h>
+# include <libloaderapi.h>
# include "utf8conv.h"
# include "mischelp.h"
# define RTLD_LAZY 0
diff --git a/common/exechelp-w32.c b/common/exechelp-w32.c
index 92be5cd52..dee96f5b4 100644
--- a/common/exechelp-w32.c
+++ b/common/exechelp-w32.c
@@ -65,6 +65,8 @@
#include "sysutils.h"
#include "exechelp.h"
+#include <windows.h>
+
/* Define to 1 do enable debugging. */
#define DEBUG_W32_SPAWN 0
diff --git a/common/gettime.c b/common/gettime.c
index 03c152fdb..cbf24364e 100644
--- a/common/gettime.c
+++ b/common/gettime.c
@@ -42,6 +42,10 @@
#include "i18n.h"
#include "gettime.h"
+#ifdef HAVE_W32_SYSTEM
+#include <windows.h>
+#endif
+
#ifdef HAVE_UNSIGNED_TIME_T
# define IS_INVALID_TIME_T(a) ((a) == (time_t)(-1))
#else
diff --git a/common/utf8conv.c b/common/utf8conv.c
index bdab225a9..1f01841c7 100644
--- a/common/utf8conv.c
+++ b/common/utf8conv.c
@@ -55,6 +55,10 @@
#include "stringhelp.h"
#include "utf8conv.h"
+#ifdef HAVE_W32_SYSTEM
+#include <windows.h>
+#endif
+
#ifndef MB_LEN_MAX
#define MB_LEN_MAX 16
#endif