Information about the version of SDL in use.
Defined in SDL_version.h
typedef struct SDL_version
{/**< major version */
Uint8 major; /**< minor version */
Uint8 minor; /**< update version */
Uint8 patch; } SDL_version;
Represents the library's version as three levels: major revision (increments with massive changes, additions, and enhancements), minor revision (increments with backwards-compatible changes to the major revision), and patchlevel (increments with fixes to the minor revision).
SDL_version compiled;
SDL_version linked;
SDL_VERSION(&compiled);
SDL_GetVersion(&linked);"We compiled against SDL version %u.%u.%u ...\n",
SDL_Log(
compiled.major, compiled.minor, compiled.patch);"But we are linking against SDL version %u.%u.%u.\n",
SDL_Log( linked.major, linked.minor, linked.patch);