summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-10-26 06:14:58 +0300
committerAndrei Karas <akaras@inbox.ru>2017-10-26 06:14:58 +0300
commit350a67ec8ceef31726e1bc298b921add6cea6df1 (patch)
treea3eaf79f463de2fb44784d5221df7160eab28ff1 /src/resources
parent30edbd58ad1fb03358f6fb5251ed7106353bb82a (diff)
downloadmanaverse-350a67ec8ceef31726e1bc298b921add6cea6df1.tar.gz
manaverse-350a67ec8ceef31726e1bc298b921add6cea6df1.tar.bz2
manaverse-350a67ec8ceef31726e1bc298b921add6cea6df1.tar.xz
manaverse-350a67ec8ceef31726e1bc298b921add6cea6df1.zip
Fix compilation with old SDL2 again.
Diffstat (limited to 'src/resources')
-rw-r--r--src/resources/sdlmusic.cpp5
1 files changed, 5 insertions, 0 deletions
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)