From 14e79d3eb2194ddb223e91f8b8ff2960baf48f21 Mon Sep 17 00:00:00 2001 From: Bradley Bell Date: Sat, 16 Feb 2002 02:24:53 +0000 Subject: [PATCH] check for older macros --- include/oldsdl.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/include/oldsdl.h b/include/oldsdl.h index a4f22484..386fbf4f 100644 --- a/include/oldsdl.h +++ b/include/oldsdl.h @@ -1,8 +1,8 @@ /* * $Source: /cvs/cvsroot/d2x/include/oldsdl.h,v $ - * $Revision: 1.1 $ + * $Revision: 1.2 $ * $Author: bradleyb $ - * $Date: 2002-02-16 02:08:31 $ + * $Date: 2002-02-16 02:24:53 $ * * Version-checking macros for SDL * @@ -15,12 +15,16 @@ (1,2,3) -> (1203) This assumes that there will never be more than 100 patchlevels */ +#ifndef SDL_VERSIONNUM #define SDL_VERSIONNUM(X, Y, Z) \ (X)*1000 + (Y)*100 + (Z) +#endif /* This is the version number macro for the current SDL version */ +#ifndef SDL_COMPILEDVERSION #define SDL_COMPILEDVERSION \ SDL_VERSIONNUM(SDL_MAJOR_VERSION, SDL_MINOR_VERSION, SDL_PATCHLEVEL) +#endif /* This macro will evaluate to true if compiled with SDL at least X.Y.Z */ #define SDL_VERSION_ATLEAST(X, Y, Z) \ -- 2.39.2