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