28 #ifndef SDL_version_h_
29 #define SDL_version_h_
60 #define SDL_MAJOR_VERSION 2
61 #define SDL_MINOR_VERSION 26
62 #define SDL_PATCHLEVEL 5
79 #define SDL_VERSION(x) \
81 (x)->major = SDL_MAJOR_VERSION; \
82 (x)->minor = SDL_MINOR_VERSION; \
83 (x)->patch = SDL_PATCHLEVEL; \
87 #if SDL_MAJOR_VERSION < 3
101 #define SDL_VERSIONNUM(X, Y, Z) \
102 ((X)*1000 + (Y)*100 + (Z))
113 #define SDL_COMPILEDVERSION \
114 SDL_VERSIONNUM(SDL_MAJOR_VERSION, SDL_MINOR_VERSION, SDL_PATCHLEVEL)
120 #define SDL_VERSION_ATLEAST(X, Y, Z) \
121 ((SDL_MAJOR_VERSION >= X) && \
122 (SDL_MAJOR_VERSION > X || SDL_MINOR_VERSION >= Y) && \
123 (SDL_MAJOR_VERSION > X || SDL_MINOR_VERSION > Y || SDL_PATCHLEVEL >= Z))
SDL_DEPRECATED int SDL_GetRevisionNumber(void)
void SDL_GetVersion(SDL_version *ver)
const char * SDL_GetRevision(void)