28 #ifndef SDL_version_h_ 29 #define SDL_version_h_ 60 #define SDL_MAJOR_VERSION 2 61 #define SDL_MINOR_VERSION 0 62 #define SDL_PATCHLEVEL 11 79 #define SDL_VERSION(x) \ 81 (x)->major = SDL_MAJOR_VERSION; \ 82 (x)->minor = SDL_MINOR_VERSION; \ 83 (x)->patch = SDL_PATCHLEVEL; \ 94 #define SDL_VERSIONNUM(X, Y, Z) \ 95 ((X)*1000 + (Y)*100 + (Z)) 100 #define SDL_COMPILEDVERSION \ 101 SDL_VERSIONNUM(SDL_MAJOR_VERSION, SDL_MINOR_VERSION, SDL_PATCHLEVEL) 106 #define SDL_VERSION_ATLEAST(X, Y, Z) \ 107 (SDL_COMPILEDVERSION >= SDL_VERSIONNUM(X, Y, Z)) DECLSPEC const char *SDLCALL SDL_GetRevision(void)
Get the code revision of SDL that is linked against your program.
DECLSPEC int SDLCALL SDL_GetRevisionNumber(void)
Get the revision number of SDL that is linked against your program.
DECLSPEC void SDLCALL SDL_GetVersion(SDL_version *ver)
Get the version of SDL that is linked against your program.
Information the version of SDL in use.
struct SDL_version SDL_version
Information the version of SDL in use.