aboutsummaryrefslogtreecommitdiffstats
path: root/code/sys
diff options
context:
space:
mode:
authortma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2007-11-25 23:41:01 +0000
committertma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2007-11-25 23:41:01 +0000
commitdaa6b52744a1530591e0717d99976c30e5e8e0a6 (patch)
tree6fc4ba29584cf9d2441ef8d64d1d4f8c5e108eaf /code/sys
parent75e6bcf119724b1d3db26707da856e48802e59b4 (diff)
downloadioquake3-aero-daa6b52744a1530591e0717d99976c30e5e8e0a6.tar.gz
ioquake3-aero-daa6b52744a1530591e0717d99976c30e5e8e0a6.zip
* Move SDL library version check to sys_main.c as it's proving difficult to
make the Makefile check sufficiently portable * Remove unnecessary GL PFN... casts from SDL_GL_GetProcAddress calls * Replace OS X uname workaround with Solaris workaround, as I believe OS X uname now behaves the same as GNU name git-svn-id: svn://svn.icculus.org/quake3/trunk@1217 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/sys')
-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