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:
parent
9eaa65ccda
commit
358bd12b00
1 changed files with 13 additions and 0 deletions
|
@ -37,6 +37,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
//#include "./mingw-libs/jversion.h"
|
//#include "./mingw-libs/jversion.h"
|
||||||
#include "./mingw-libs/jpeglib.h"
|
#include "./mingw-libs/jpeglib.h"
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef _SDL
|
||||||
|
#include "./mingw-libs/SDL_version.h"
|
||||||
|
#endif
|
||||||
#elif defined(_WIN32)
|
#elif defined(_WIN32)
|
||||||
#if defined(AVAIL_PNGLIB) && !defined(SERVERONLY)
|
#if defined(AVAIL_PNGLIB) && !defined(SERVERONLY)
|
||||||
#include "png.h"
|
#include "png.h"
|
||||||
|
@ -49,6 +52,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
//#include "jversion.h"
|
//#include "jversion.h"
|
||||||
#include "jpeglib.h"
|
#include "jpeglib.h"
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef _SDL
|
||||||
|
#include "SDL_version.h"
|
||||||
|
#endif
|
||||||
#else
|
#else
|
||||||
#if defined(AVAIL_PNGLIB) && !defined(SERVERONLY)
|
#if defined(AVAIL_PNGLIB) && !defined(SERVERONLY)
|
||||||
#include <png.h>
|
#include <png.h>
|
||||||
|
@ -60,6 +66,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
//#include <jversion.h>
|
//#include <jversion.h>
|
||||||
#include <jpeglib.h>
|
#include <jpeglib.h>
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef _SDL
|
||||||
|
#include <SDL_version.h>
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#undef malloc
|
#undef malloc
|
||||||
|
@ -3090,6 +3099,10 @@ void COM_Version_f (void)
|
||||||
Con_Printf("dedicated server build\n");
|
Con_Printf("dedicated server build\n");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef _SDL
|
||||||
|
Con_Printf("SDL version: %d.%d.%d\n", SDL_MAJOR_VERSION, SDL_MINOR_VERSION, SDL_PATCHLEVEL);
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __MINGW32__
|
#ifdef __MINGW32__
|
||||||
Con_Printf("Compiled with MinGW32 version: %i.%i\n",__MINGW32_MAJOR_VERSION, __MINGW32_MINOR_VERSION);
|
Con_Printf("Compiled with MinGW32 version: %i.%i\n",__MINGW32_MAJOR_VERSION, __MINGW32_MINOR_VERSION);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue