From 54a217c27b6f8d4483a00c6bc4520037b7a09ba0 Mon Sep 17 00:00:00 2001 From: Muzychenko Andrey <33288308+k4zmu2a@users.noreply.github.com> Date: Mon, 18 Jul 2022 09:45:46 +0300 Subject: [PATCH] Fixed build with new SDL_mixer versions. Issue #145. --- SpaceCadetPinball/pch.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SpaceCadetPinball/pch.h b/SpaceCadetPinball/pch.h index e745878..2e59e8e 100644 --- a/SpaceCadetPinball/pch.h +++ b/SpaceCadetPinball/pch.h @@ -36,8 +36,9 @@ #include // 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;