foxygit / doom Log in
commit 4b05e5899357073c9bd3a337b0239e936d138b5c
Author:     Turo Lamminen <turol@iki.fi>
AuthorDate: Sat Jul 15 16:22:04 2023 +0300
Commit:     Turo Lamminen <turol@users.noreply.github.com>
CommitDate: Mon Jul 17 21:24:23 2023 +0300

    Don't include SDL_mixer.h when it's disabled
---
 opl/opl_sdl.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/opl/opl_sdl.c b/opl/opl_sdl.c
index 7d531ae4..f15af6c2 100644
--- a/opl/opl_sdl.c
+++ b/opl/opl_sdl.c
@@ -24,7 +24,9 @@
 #include <assert.h>

 #include "SDL.h"
+#ifndef DISABLE_SDL2MIXER
 #include "SDL_mixer.h"
+#endif  // DISABLE_SDL2MIXER

 #include "opl3.h"