Skip to content

Commit

Permalink
Use SDL_VERSION_ATLEAST macro
Browse files Browse the repository at this point in the history
  • Loading branch information
madebr committed May 15, 2024
1 parent af81363 commit 54b6f35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/music.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@
#include "utils.h"

/* Check to make sure we are building with a new enough SDL */
#if SDL_COMPILEDVERSION < SDL_VERSIONNUM(2, 0, 7)
#error You need SDL 2.0.7 or newer from http://www.libsdl.org
#if !SDL_VERSION_ATLEAST(3, 0, 0)
#error You need SDL 3.0.0 or newer from http://www.libsdl.org
#endif

/* Set this hint to true if you want verbose logging of music interfaces */
Expand Down

1 comment on commit 54b6f35

@slouken
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can remove this check - actually we can remove all SDL version checks in the SDL main branches - we're guaranteed to be at least SDL 3.0.0

Please sign in to comment.