diff --git a/polymer/eduke32/build/include/sdlayer.h b/polymer/eduke32/build/include/sdlayer.h index 85dca220c..6954dc8ae 100644 --- a/polymer/eduke32/build/include/sdlayer.h +++ b/polymer/eduke32/build/include/sdlayer.h @@ -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 diff --git a/polymer/eduke32/build/src/sdlayer.c b/polymer/eduke32/build/src/sdlayer.c index a78942f9f..47f692444 100644 --- a/polymer/eduke32/build/src/sdlayer.c +++ b/polymer/eduke32/build/src/sdlayer.c @@ -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);