00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00027 #ifndef _SDL_version_h
00028 #define _SDL_version_h
00029
00030 #include "SDL_stdinc.h"
00031
00032 #include "begin_code.h"
00033
00034 #ifdef __cplusplus
00035 extern "C" {
00036 #endif
00037
00042 #define SDL_MAJOR_VERSION 1
00043 #define SDL_MINOR_VERSION 2
00044 #define SDL_PATCHLEVEL 14
00045
00047 typedef struct SDL_version {
00048 Uint8 major;
00049 Uint8 minor;
00050 Uint8 patch;
00051 } SDL_version;
00052
00057 #define SDL_VERSION(X) \
00058 { \
00059 (X)->major = SDL_MAJOR_VERSION; \
00060 (X)->minor = SDL_MINOR_VERSION; \
00061 (X)->patch = SDL_PATCHLEVEL; \
00062 }
00063
00068 #define SDL_VERSIONNUM(X, Y, Z) \
00069 ((X)*1000 + (Y)*100 + (Z))
00070
00072 #define SDL_COMPILEDVERSION \
00073 SDL_VERSIONNUM(SDL_MAJOR_VERSION, SDL_MINOR_VERSION, SDL_PATCHLEVEL)
00074
00076 #define SDL_VERSION_ATLEAST(X, Y, Z) \
00077 (SDL_COMPILEDVERSION >= SDL_VERSIONNUM(X, Y, Z))
00078
00083 extern DECLSPEC const SDL_version * SDLCALL SDL_Linked_Version(void);
00084
00085
00086 #ifdef __cplusplus
00087 }
00088 #endif
00089 #include "close_code.h"
00090
00091 #endif