aboutsummaryrefslogtreecommitdiffstats
path: root/code/sys/sys_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'code/sys/sys_main.c')
-rw-r--r--code/sys/sys_main.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/code/sys/sys_main.c b/code/sys/sys_main.c
index 30039d7..bf0eb94 100644
--- a/code/sys/sys_main.c
+++ b/code/sys/sys_main.c
@@ -587,6 +587,14 @@ int main( int argc, char **argv )
char commandLine[ MAX_STRING_CHARS ] = { 0 };
#ifndef DEDICATED
+ // SDL version check
+
+ // Compile time
+# if !SDL_VERSION_ATLEAST(MINSDL_MAJOR,MINSDL_MINOR,MINSDL_PATCH)
+# error A more recent version of SDL is required
+# endif
+
+ // Run time
const SDL_version *ver = SDL_Linked_Version( );
#define STRING(s) #s