ref: 1ae8d91a2a129fcb3f10fbd7f8e6dca973196c10
parent: 9e4e389fccbb102cb25f7ae7664ee5ede9036481
author: Paul Brossier <piem@piem.org>
date: Mon May 9 16:02:55 EDT 2016
src/utils/windll.c: fix mingw cross-compilation
--- a/src/utils/windll.c
+++ b/src/utils/windll.c
@@ -28,9 +28,13 @@
#ifdef HAVE_WIN_HACKS
+#ifndef __GNUC__ // do not include msvc headers when using gcc/mingw32
+
// latest version
#include <SDKDDKVer.h>
// for earlier versions, include WinSDKVer.h and set _WIN32_WINNT macro
+
+#endif /* __GNUC__ */
#define WIN32_LEAN_AND_MEAN
#include <windows.h>