From 350a67ec8ceef31726e1bc298b921add6cea6df1 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 26 Oct 2017 06:14:58 +0300 Subject: Fix compilation with old SDL2 again. --- src/resources/sdlmusic.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/resources') diff --git a/src/resources/sdlmusic.cpp b/src/resources/sdlmusic.cpp index 983fc55c2..9a2a4073b 100644 --- a/src/resources/sdlmusic.cpp +++ b/src/resources/sdlmusic.cpp @@ -25,6 +25,11 @@ #include "debug.h" #ifndef USE_SDL2 +#ifndef SDL_MIXER_COMPILEDVERSION +#define SDL_MIXER_COMPILEDVERSION \ + SDL_VERSIONNUM(SDL_MIXER_MAJOR_VERSION, \ + SDL_MIXER_MINOR_VERSION, SDL_MIXER_PATCHLEVEL) +#endif // SDL_MIXER_COMPILEDVERSION #define SDL_MIXER_COMPILEDVERSION \ SDL_VERSIONNUM(SDL_MIXER_MAJOR_VERSION, \ SDL_MIXER_MINOR_VERSION, SDL_MIXER_PATCHLEVEL) -- cgit v1.2.3-70-g09d2