Navigation Menu

Skip to content

Commit

Permalink
Added a check to make sure we're building with new enough SDL
Browse files Browse the repository at this point in the history
This helps, for example, if someone is downloading and building on Android
  • Loading branch information
slouken committed Oct 25, 2017
1 parent 6899bf3 commit 83a1553
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions music.c
Expand Up @@ -42,6 +42,11 @@
#include "music_flac.h"
#include "native_midi/native_midi.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
#endif

/* Set this hint to true if you want verbose logging of music interfaces */
#define SDL_MIXER_HINT_DEBUG_MUSIC_INTERFACES \
"SDL_MIXER_DEBUG_MUSIC_INTERFACES"
Expand Down

0 comments on commit 83a1553

Please sign in to comment.