summaryrefslogtreecommitdiff
path: root/src/resources/sdlmusic.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-09-19 20:59:49 +0300
committerAndrei Karas <akaras@inbox.ru>2013-09-19 20:59:49 +0300
commit378441b559615cc96150e64137ae2ce02d23d2f2 (patch)
tree10ceb5467000747f3b1d6f41c96ca5a595f57d4f /src/resources/sdlmusic.cpp
parent11209f8ab3bfc738f0249e0cdfe6400f73cb0b85 (diff)
downloadmv-378441b559615cc96150e64137ae2ce02d23d2f2.tar.gz
mv-378441b559615cc96150e64137ae2ce02d23d2f2.tar.bz2
mv-378441b559615cc96150e64137ae2ce02d23d2f2.tar.xz
mv-378441b559615cc96150e64137ae2ce02d23d2f2.zip
fix some compilation issues in different platforms.
Diffstat (limited to 'src/resources/sdlmusic.cpp')
-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 03c6922d6..b9f6492d1 100644
--- a/src/resources/sdlmusic.cpp
+++ b/src/resources/sdlmusic.cpp
@@ -51,13 +51,14 @@ Resource *SDLMusic::load(SDL_RWops *const rw)
if (Mix_Music *const music = Mix_LoadMUSType_RW(rw, MUS_OGG, 1))
{
return new SDLMusic(music, nullptr);
+ }
#else
// Mix_LoadMUSType_RW was added without version changed in SDL1.2 :(
if (Mix_Music *const music = Mix_LoadMUS_RW(rw))
{
return new SDLMusic(music, rw);
-#endif
}
+#endif
else
{
logger->log("Error, failed to load music: %s", Mix_GetError());