2 * $Source: /cvs/cvsroot/d2x/include/oldsdl.h,v $
5 * $Date: 2002-02-16 02:08:31 $
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 #define SDL_VERSIONNUM(X, Y, Z) \
19 (X)*1000 + (Y)*100 + (Z)
21 /* This is the version number macro for the current SDL version */
22 #define SDL_COMPILEDVERSION \
23 SDL_VERSIONNUM(SDL_MAJOR_VERSION, SDL_MINOR_VERSION, SDL_PATCHLEVEL)
25 /* This macro will evaluate to true if compiled with SDL at least X.Y.Z */
26 #define SDL_VERSION_ATLEAST(X, Y, Z) \
27 (SDL_COMPILEDVERSION >= SDL_VERSIONNUM(X, Y, Z))