2 * $Source: /cvs/cvsroot/d2x/include/oldsdl.h,v $
5 * $Date: 2002-02-16 02:24:53 $
7 * Version-checking macros for SDL
14 /* This macro turns the version numbers into a numeric value:
16 This assumes that there will never be more than 100 patchlevels
18 #ifndef SDL_VERSIONNUM
19 #define SDL_VERSIONNUM(X, Y, Z) \
20 (X)*1000 + (Y)*100 + (Z)
23 /* This is the version number macro for the current SDL version */
24 #ifndef SDL_COMPILEDVERSION
25 #define SDL_COMPILEDVERSION \
26 SDL_VERSIONNUM(SDL_MAJOR_VERSION, SDL_MINOR_VERSION, SDL_PATCHLEVEL)
29 /* This macro will evaluate to true if compiled with SDL at least X.Y.Z */
30 #define SDL_VERSION_ATLEAST(X, Y, Z) \
31 (SDL_COMPILEDVERSION >= SDL_VERSIONNUM(X, Y, Z))