summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-02-18 23:30:33 +0300
committerAndrei Karas <akaras@inbox.ru>2017-02-18 23:30:33 +0300
commite95326ff38b79da7c5ef7204f5df78cc9ce9f7e4 (patch)
tree497657aaff2a575b28f5b79c2cd690eb5efac46b /src
parent9fbbdc2ce4d7d7a9551d59bb45f0d95ac33c4a2a (diff)
downloadmv-e95326ff38b79da7c5ef7204f5df78cc9ce9f7e4.tar.gz
mv-e95326ff38b79da7c5ef7204f5df78cc9ce9f7e4.tar.bz2
mv-e95326ff38b79da7c5ef7204f5df78cc9ce9f7e4.tar.xz
mv-e95326ff38b79da7c5ef7204f5df78cc9ce9f7e4.zip
Fix compilation warning with SDL2.v1.7.2.18
Diffstat (limited to 'src')
-rw-r--r--src/resources/sdlmusic.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/resources/sdlmusic.cpp b/src/resources/sdlmusic.cpp
index 964cab507..ab0133588 100644
--- a/src/resources/sdlmusic.cpp
+++ b/src/resources/sdlmusic.cpp
@@ -24,12 +24,14 @@
#include "debug.h"
+#ifndef USE_SDL2
#define SDL_MIXER_COMPILEDVERSION \
SDL_VERSIONNUM(SDL_MIXER_MAJOR_VERSION, \
SDL_MIXER_MINOR_VERSION, SDL_MIXER_PATCHLEVEL)
#define SDL_MIXER_VERSION_ATLEAST(X, Y, Z) \
(SDL_MIXER_COMPILEDVERSION >= SDL_VERSIONNUM(X, Y, Z))
+#endif // USE_SDL2
SDLMusic::SDLMusic(Mix_Music *const music,
SDL_RWops *const rw,