sdlayer: Add EDUKE32_SDL_LINKED_PREREQ macro.

git-svn-id: https://svn.eduke32.com/eduke32@5903 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2016-10-20 06:26:17 +00:00
parent 1d7c67fd68
commit 86201254bd
2 changed files with 4 additions and 1 deletions

View file

@ -9,6 +9,8 @@
#include "compat.h"
#include "baselayer.h"
#define EDUKE32_SDL_LINKED_PREREQ(x, a, b, c) ((x).major > (a) || ((x).major == (a) && ((x).minor > (b) || ((x).minor == (b) && (x).patch >= (c)))))
extern int32_t maxrefreshfreq;
#ifdef _WIN32

View file

@ -49,6 +49,8 @@
# define SDL_DISABLE_8BIT_BUFFER
#endif
static SDL_version linked;
#if !defined STARTUP_SETUP_WINDOW
int32_t startwin_open(void) { return 0; }
int32_t startwin_close(void) { return 0; }
@ -508,7 +510,6 @@ int32_t sdlayer_checkversion(void);
int32_t sdlayer_checkversion(void)
{
SDL_version compiled;
SDL_version linked;
SDL_GetVersion(&linked);
SDL_VERSION(&compiled);