From: Paul Brossier Date: Mon, 9 May 2016 18:02:55 +0000 (+0200) Subject: src/utils/windll.c: fix mingw cross-compilation X-Git-Tag: 0.4.4~300^2~112 X-Git-Url: https://git.aubio.org/?p=aubio.git;a=commitdiff_plain;h=1ae8d91a2a129fcb3f10fbd7f8e6dca973196c10 src/utils/windll.c: fix mingw cross-compilation --- 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