src/utils/windll.c: fix mingw cross-compilation
authorPaul Brossier <piem@piem.org>
Mon, 9 May 2016 18:02:55 +0000 (20:02 +0200)
committerPaul Brossier <piem@piem.org>
Mon, 9 May 2016 18:02:55 +0000 (20:02 +0200)
src/utils/windll.c

index 54783b1..7c11af6 100644 (file)
 
 #ifdef HAVE_WIN_HACKS
 
 
 #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
 
 // 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>
 
 #define WIN32_LEAN_AND_MEAN
 #include <windows.h>