ao_wasapi: fix include order

ks.h has to be included first.
This commit is contained in:
Kacper Michajłow 2024-05-01 19:57:51 +02:00
parent fffe723fc4
commit 7253a7dea9
1 changed files with 9 additions and 1 deletions

View File

@ -20,9 +20,17 @@
#include <math.h> #include <math.h>
#include <windows.h> #include <windows.h>
#include <mmsystem.h> // 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 <mmreg.h> #include <mmreg.h>
#include <ksguid.h> #include <ksguid.h>
#else
#include <ks.h>
#include <ksguid.h>
#include <mmreg.h>
#endif
#include <mmsystem.h>
#include <ksmedia.h> #include <ksmedia.h>
#include <avrt.h> #include <avrt.h>
#include <propsys.h> #include <propsys.h>