File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -228,6 +228,16 @@ typedef struct MIX_Group MIX_Group;
228228 */
229229#define SDL_MIXER_VERSION SDL_VERSIONNUM(SDL_MIXER_MAJOR_VERSION, SDL_MIXER_MINOR_VERSION, SDL_MIXER_MICRO_VERSION)
230230
231+ /**
232+ * This macro will evaluate to true if compiled with SDL_mixer at least X.Y.Z.
233+ *
234+ * \since This macro is available since SDL_mixer 3.0.0.
235+ */
236+ #define SDL_MIXER_VERSION_ATLEAST (X , Y , Z ) \
237+ ((SDL_MIXER_MAJOR_VERSION >= X) && \
238+ (SDL_MIXER_MAJOR_VERSION > X || SDL_MIXER_MINOR_VERSION >= Y) && \
239+ (SDL_MIXER_MAJOR_VERSION > X || SDL_MIXER_MINOR_VERSION > Y || SDL_MIXER_MICRO_VERSION >= Z))
240+
231241/**
232242 * Get the version of SDL_mixer that is linked against your program.
233243 *
You can’t perform that action at this time.
0 commit comments