From 358bd12b00ecc2b033329f47c69a1ce82c96a470 Mon Sep 17 00:00:00 2001 From: Lance Date: Sun, 14 Nov 2010 10:16:40 +0000 Subject: [PATCH] SDL version printout with "version" command git-svn-id: https://svn.code.sf.net/p/fteqw/code/branches/wip@3654 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/common/common.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/engine/common/common.c b/engine/common/common.c index cee92c5db..dc6b4350b 100644 --- a/engine/common/common.c +++ b/engine/common/common.c @@ -37,6 +37,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. //#include "./mingw-libs/jversion.h" #include "./mingw-libs/jpeglib.h" #endif + #ifdef _SDL + #include "./mingw-libs/SDL_version.h" + #endif #elif defined(_WIN32) #if defined(AVAIL_PNGLIB) && !defined(SERVERONLY) #include "png.h" @@ -49,6 +52,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. //#include "jversion.h" #include "jpeglib.h" #endif + #ifdef _SDL + #include "SDL_version.h" + #endif #else #if defined(AVAIL_PNGLIB) && !defined(SERVERONLY) #include @@ -60,6 +66,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. //#include #include #endif + #ifdef _SDL + #include + #endif #endif #undef malloc @@ -3090,6 +3099,10 @@ void COM_Version_f (void) Con_Printf("dedicated server build\n"); #endif +#ifdef _SDL + Con_Printf("SDL version: %d.%d.%d\n", SDL_MAJOR_VERSION, SDL_MINOR_VERSION, SDL_PATCHLEVEL); +#endif + #ifdef __MINGW32__ Con_Printf("Compiled with MinGW32 version: %i.%i\n",__MINGW32_MAJOR_VERSION, __MINGW32_MINOR_VERSION); #endif