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
This commit is contained in:
Lance 2010-11-14 10:16:40 +00:00
parent 9eaa65ccda
commit 358bd12b00
1 changed files with 13 additions and 0 deletions

View File

@ -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 <png.h>
@ -60,6 +66,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
#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