1
0
Fork 0
mirror of https://github.com/k4zmu2a/SpaceCadetPinball.git synced 2024-11-17 15:20:17 +01:00

Fixed build with new SDL_mixer versions.

Issue #145.
This commit is contained in:
Muzychenko Andrey 2022-07-18 09:45:46 +03:00
parent 6f00b57eb9
commit 54a217c27b

View file

@ -36,8 +36,9 @@
#include <SDL_mixer.h>
// MIX_INIT_FLUIDSYNTH was renamed to MIX_INIT_MID in SDL_mixer v2.0.2
// Older versions of SDL_mixer did not have SDL_MIXER_VERSION_ATLEAST
constexpr int MIX_INIT_MID_Proxy =
#if SDL_MIXER_PATCHLEVEL >= 2
#if SDL_VERSIONNUM(SDL_MIXER_MAJOR_VERSION, SDL_MIXER_MINOR_VERSION, SDL_MIXER_PATCHLEVEL) >= SDL_VERSIONNUM(2, 0, 2)
MIX_INIT_MID;
#else
MIX_INIT_FLUIDSYNTH;