diff options
author | Matthew Gregan <[email protected]> | 2021-07-28 09:18:35 +1200 |
---|---|---|
committer | Matthew Gregan <[email protected]> | 2021-07-28 09:29:48 +1200 |
commit | 28f2d92c3d2199e90d09c9ffd02a738616108c7c (patch) | |
tree | 7e741f99ffe4d932e9b31147490daafecb89f623 | |
parent | f4ef497bbe74cac2af30de74e2a80fba9c0888f0 (diff) | |
download | cubeb-28f2d92c3d2199e90d09c9ffd02a738616108c7c.tar.gz cubeb-28f2d92c3d2199e90d09c9ffd02a738616108c7c.zip |
winmm: Undo some header reordering to fix build.
-rw-r--r-- | src/cubeb_winmm.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/cubeb_winmm.c b/src/cubeb_winmm.c index 8cb307a..3480d3f 100644 --- a/src/cubeb_winmm.c +++ b/src/cubeb_winmm.c @@ -12,13 +12,17 @@ #include "cubeb/cubeb.h" #include <malloc.h> #include <math.h> -#include <mmreg.h> -#include <mmsystem.h> #include <process.h> #include <stdio.h> #include <stdlib.h> #include <windows.h> +/* clang-format off */ +/* These need to be included after windows.h */ +#include <mmsystem.h> +#include <mmreg.h> +/* clang-format on */ + /* This is missing from the MinGW headers. Use a safe fallback. */ #if !defined(MEMORY_ALLOCATION_ALIGNMENT) #define MEMORY_ALLOCATION_ALIGNMENT 16 |