SDL Wiki


A structure that contains information about the version of SDL in use.

Data Fields

Uint8 major major version
Uint8 minor minor version
Uint8 patch update version (patchlevel)

Code Examples

SDL_version compiled;
SDL_version linked;

SDL_Log("We compiled against SDL version %u.%u.%u ...\n",
       compiled.major, compiled.minor, compiled.patch);
SDL_Log("But we are linking against SDL version %u.%u.%u.\n",
       linked.major, linked.minor, linked.patch);


Represents the library's version as three levels:

The macro SDL_VERSION can be used to populate this structure with information.

CategoryStruct, CategoryVersion

[ edit | delete | history | feedback | raw ]

[ front page | index | search | recent changes | git repo | offline html ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.