mirror of
https://github.com/k4zmu2a/SpaceCadetPinball.git
synced 2024-12-20 11:17:53 +01:00
Backward compatibility for mixer version check (#46)
SDL_MIXER_VERSION_ATLEAST isn't available in SDL Mixer 2.0.1, which will cause build errors.
This commit is contained in:
parent
b7bf1563e5
commit
787c623cfe
1 changed files with 3 additions and 0 deletions
|
@ -1,6 +1,9 @@
|
||||||
#include "pch.h"
|
#include "pch.h"
|
||||||
#include "Sound.h"
|
#include "Sound.h"
|
||||||
|
|
||||||
|
#ifndef SDL_MIXER_VERSION_ATLEAST
|
||||||
|
#define SDL_MIXER_VERSION_ATLEAST(X, Y, Z) (SDL_MIXER_COMPILEDVERSION >= SDL_VERSIONNUM(X, Y, Z))
|
||||||
|
#endif
|
||||||
|
|
||||||
int Sound::num_channels;
|
int Sound::num_channels;
|
||||||
bool Sound::enabled_flag = false;
|
bool Sound::enabled_flag = false;
|
||||||
|
|
Loading…
Reference in a new issue