From 7253a7dea92747b0a97a2cd2b8c43ba03e451421 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= Date: Wed, 1 May 2024 19:57:51 +0200 Subject: [PATCH] ao_wasapi: fix include order ks.h has to be included first. --- audio/out/ao_wasapi_utils.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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