diff options
Diffstat (limited to 'extern/sdlew/include/SDL2/SDL_version.h')
-rw-r--r-- | extern/sdlew/include/SDL2/SDL_version.h | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/extern/sdlew/include/SDL2/SDL_version.h b/extern/sdlew/include/SDL2/SDL_version.h new file mode 100644 index 00000000000..0156f77daea --- /dev/null +++ b/extern/sdlew/include/SDL2/SDL_version.h @@ -0,0 +1,56 @@ + +#ifndef _SDL_version_h +#define _SDL_version_h + +#include "SDL_stdinc.h" + +#include "begin_code.h" + +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct SDL_version +{ + Uint8 major; + Uint8 minor; + Uint8 patch; +} SDL_version; + +#define SDL_MAJOR_VERSION 2 +#define SDL_MINOR_VERSION 0 +#define SDL_PATCHLEVEL 0 + +#define SDL_VERSION(x) \ +{ \ + (x)->major = SDL_MAJOR_VERSION; \ + (x)->minor = SDL_MINOR_VERSION; \ + (x)->patch = SDL_PATCHLEVEL; \ +} + +#define SDL_VERSIONNUM(X, Y, Z) \ + ((X)*1000 + (Y)*100 + (Z)) + +#define SDL_COMPILEDVERSION \ + SDL_VERSIONNUM(SDL_MAJOR_VERSION, SDL_MINOR_VERSION, SDL_PATCHLEVEL) + +#define SDL_VERSION_ATLEAST(X, Y, Z) \ + (SDL_COMPILEDVERSION >= SDL_VERSIONNUM(X, Y, Z)) + +typedef void SDLCALL tSDL_GetVersion(SDL_version * ver); + +typedef const char * SDLCALL tSDL_GetRevision(void); + +typedef int SDLCALL tSDL_GetRevisionNumber(void); + +extern tSDL_GetVersion *SDL_GetVersion; +extern tSDL_GetRevision *SDL_GetRevision; +extern tSDL_GetRevisionNumber *SDL_GetRevisionNumber; + +#ifdef __cplusplus +} +#endif +#include "close_code.h" + +#endif + |