commit 10ebb15f419fa9e71db2abb21640b83d8aaaba29
Author: Fabian Greffrath <fabian@greffrath.com>
AuthorDate: Sat Mar 16 08:57:12 2019 +0100
Commit: Fabian Greffrath <fabian@greffrath.com>
CommitDate: Sat Mar 16 08:57:12 2019 +0100
sound: check if the SDL2_Mixer version checking macro is defined
Turns out that the macro we use to check the SDL2_Mixer version is
defined in the exact version that we check for -- using this macro.
What a mess! This fixes the Travic CI build.
---
src/i_sdlmusic.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/i_sdlmusic.c b/src/i_sdlmusic.c
index 133f073a..af77912c 100644
--- a/src/i_sdlmusic.c
+++ b/src/i_sdlmusic.c
@@ -194,7 +194,8 @@ static boolean I_SDL_InitMusic(void)
}
}
-#if SDL_MIXER_VERSION_ATLEAST(2,0,2)
+#if defined(SDL_MIXER_VERSION_ATLEAST) && \
+ SDL_MIXER_VERSION_ATLEAST(2,0,2)
// Initialize SDL_Mixer for MIDI music playback
Mix_Init(MIX_INIT_MID);
#endif