Skip to content

Commit

Permalink
Minor SDL2 fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Aug 16, 2012
1 parent fca226e commit 649f0cb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion playsound/playsound.c
Expand Up @@ -84,12 +84,18 @@ static void output_versions(const char *argv0)
Sound_Version compiled;
Sound_Version linked;
SDL_version sdl_compiled;
const SDL_version *sdl_linked;
SDL_version sdl_linked_ver;
const SDL_version *sdl_linked = &sdl_linked_ver;

SOUND_VERSION(&compiled);
Sound_GetLinkedVersion(&linked);
SDL_VERSION(&sdl_compiled);

#if SDL_MAJOR_VERSION >= 2
SDL_GetVersion(&sdl_linked_ver);
#else
sdl_linked = SDL_Linked_Version();
#endif

fprintf(stdout,
"%s version %d.%d.%d\n"
Expand Down

0 comments on commit 649f0cb

Please sign in to comment.