aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorPaul Adenot <[email protected]>2022-12-13 15:10:22 +0100
committerPaul Adenot <[email protected]>2022-12-13 15:10:22 +0100
commite4da2d47c3499320142145f3dbc27204b2d51a59 (patch)
treef865c296408512d209ee7e12719dde42c0765fd4
parent274d8b56bc4e9432b682b71bbcf894eb828467ae (diff)
downloadcubeb-e4da2d47c3499320142145f3dbc27204b2d51a59.tar.gz
cubeb-e4da2d47c3499320142145f3dbc27204b2d51a59.zip
Don't include timeapi.h because it doesn't exist in MinGW, include mmsystem.h that declares timeGetTime instead.
-rw-r--r--src/cubeb_wasapi.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cubeb_wasapi.cpp b/src/cubeb_wasapi.cpp
index 2cad230..a5f4759 100644
--- a/src/cubeb_wasapi.cpp
+++ b/src/cubeb_wasapi.cpp
@@ -21,10 +21,13 @@
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
-#include <timeapi.h>
#include <vector>
#include <windef.h>
#include <windows.h>
+/* clang-format off */
+/* These need to be included after windows.h */
+#include <mmsystem.h>
+/* clang-format on */
#include "cubeb-internal.h"
#include "cubeb/cubeb.h"