From 83a15532f302abf1235fa9fc9be5a644bf88dc3b Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Wed, 25 Oct 2017 06:47:17 -0700 Subject: [PATCH] Added a check to make sure we're building with new enough SDL This helps, for example, if someone is downloading and building on Android --- music.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/music.c b/music.c index 7ecb869e..a7ba6f9e 100644 --- a/music.c +++ b/music.c @@ -42,6 +42,11 @@ #include "music_flac.h" #include "native_midi/native_midi.h" +/* Check to make sure we are building with a new enough SDL */ +#if SDL_COMPILEDVERSION < SDL_VERSIONNUM(2, 0, 7) +#error You need SDL 2.0.7 or newer from http://www.libsdl.org +#endif + /* Set this hint to true if you want verbose logging of music interfaces */ #define SDL_MIXER_HINT_DEBUG_MUSIC_INTERFACES \ "SDL_MIXER_DEBUG_MUSIC_INTERFACES"