diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-10-26 05:24:42 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-10-26 05:24:42 +0300 |
commit | 30edbd58ad1fb03358f6fb5251ed7106353bb82a (patch) | |
tree | e0b1fb4eada8b36809e82af310802441c2f6c8f5 /src/utils/sdl2musichelper.cpp | |
parent | 3b601ac447ca958ffc556b545cf07cc7a277199e (diff) | |
download | mv-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/utils/sdl2musichelper.cpp')
-rw-r--r-- | src/utils/sdl2musichelper.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/utils/sdl2musichelper.cpp b/src/utils/sdl2musichelper.cpp index 300f79991..eb73b2214 100644 --- a/src/utils/sdl2musichelper.cpp +++ b/src/utils/sdl2musichelper.cpp @@ -24,6 +24,11 @@ #include "debug.h" +#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 + int SDL::MixOpenAudio(const int frequency, const uint16_t format, const int nchannels, |