mirror of
https://github.com/k4zmu2a/SpaceCadetPinball.git
synced 2024-11-17 15:20:17 +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 "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;
|
||||
bool Sound::enabled_flag = false;
|
||||
|
|
Loading…
Reference in a new issue