summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-10-26 05:24:42 +0300
committerAndrei Karas <akaras@inbox.ru>2017-10-26 05:24:42 +0300
commit30edbd58ad1fb03358f6fb5251ed7106353bb82a (patch)
treee0b1fb4eada8b36809e82af310802441c2f6c8f5 /src/resources
parent3b601ac447ca958ffc556b545cf07cc7a277199e (diff)
downloadmv-30edbd58ad1fb03358f6fb5251ed7106353bb82a.tar.gz
mv-30edbd58ad1fb03358f6fb5251ed7106353bb82a.tar.bz2
mv-30edbd58ad1fb03358f6fb5251ed7106353bb82a.tar.xz
mv-30edbd58ad1fb03358f6fb5251ed7106353bb82a.zip
Fix compilation with old SDL 2 versions.
Diffstat (limited to 'src/resources')
-rw-r--r--src/resources/sdlmusic.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/resources/sdlmusic.cpp b/src/resources/sdlmusic.cpp
index be363fc48..983fc55c2 100644
--- a/src/resources/sdlmusic.cpp
+++ b/src/resources/sdlmusic.cpp
@@ -28,9 +28,10 @@
#define SDL_MIXER_COMPILEDVERSION \
SDL_VERSIONNUM(SDL_MIXER_MAJOR_VERSION, \
SDL_MIXER_MINOR_VERSION, SDL_MIXER_PATCHLEVEL)
-
+#ifndef SDL_MIXER_VERSION_ATLEAST
#define SDL_MIXER_VERSION_ATLEAST(X, Y, Z) \
(SDL_MIXER_COMPILEDVERSION >= SDL_VERSIONNUM(X, Y, Z))
+#endif // SDL_MIXER_VERSION_ATLEAST
#endif // USE_SDL2
SDLMusic::SDLMusic(Mix_Music *const music,