From 1ae8d91a2a129fcb3f10fbd7f8e6dca973196c10 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Mon, 9 May 2016 20:02:55 +0200 Subject: [PATCH] src/utils/windll.c: fix mingw cross-compilation --- src/utils/windll.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/utils/windll.c b/src/utils/windll.c index 54783b19..7c11af6d 100644 --- a/src/utils/windll.c +++ b/src/utils/windll.c @@ -28,10 +28,14 @@ #ifdef HAVE_WIN_HACKS +#ifndef __GNUC__ // do not include msvc headers when using gcc/mingw32 + // latest version #include // for earlier versions, include WinSDKVer.h and set _WIN32_WINNT macro +#endif /* __GNUC__ */ + #define WIN32_LEAN_AND_MEAN #include -- 2.11.0