diff --git a/audio/out/ao_wasapi_utils.c b/audio/out/ao_wasapi_utils.c index 2614872b91..e07468aff4 100644 --- a/audio/out/ao_wasapi_utils.c +++ b/audio/out/ao_wasapi_utils.c @@ -20,9 +20,17 @@ #include #include -#include +// Workaround for redefinition of some guids in mingw. ks.h has to be included +// before other ks*.h headers, but mingw fails then. +#ifdef __MINGW32__ #include #include +#else +#include +#include +#include +#endif +#include #include #include #include