Mix_Linked_Version

Name

Mix_Linked_Version -- get linked library's version.

Synopsis

#include "SDL_mixer.h"

const SDL_version *Mix_Linked_Version()
void MIX_VERSION(SDL_version *compile_version) 

Description

Mix_Linked_Version works similar to SDL_Linked_Version and SDL_VERSION. Using these you can compare the runtime version to the version that you compiled with.

Return Value

Returns a constant pointer to an SDL_version structure containing the version information.

Example

SDL_version compile_version, *link_version;
MIX_VERSION(&compile_version);
printf("compiled with SDL_mixer version: %d.%d.%d\n", 
        compile_version.major,
        compile_version.minor,
        compile_version.patch);
link_version=Mix_Linked_Version();
printf("running with SDL_mixer version: %d.%d.%d\n", 
        link_version->major,
        link_version->minor,
        link_version->patch);

See Also

Mix_OpenAudio, Mix_QuerySpec

Mix_Linked_Version (last edited 2008-04-17 08:18:36 by localhost)