Index: trunk/src/lib/sdl.cc
===================================================================
--- trunk/src/lib/sdl.cc	(revision 170)
+++ trunk/src/lib/sdl.cc	(revision 171)
@@ -13,5 +13,12 @@
 #define NV_SDL_FUN( rtype, fname, fparams ) rtype (NV_SDL_APIENTRY *fname) fparams = nullptr;
 #include <nv/lib/detail/sdl_functions.inc>
+#if NV_SDL_VERSION == NV_SDL_12
+#	include <nv/lib/detail/sdl_functions_12.inc>
+#elif NV_SDL_VERSION == NV_SDL_20
+#	include <nv/lib/detail/sdl_functions_20.inc>
+#endif
 #undef NV_SDL_FUN
+
+
 
 bool nv::load_sdl_library( const char* path )
@@ -22,4 +29,9 @@
 #	define NV_SDL_FUN( rtype, fname, fparams ) *(void **) (&fname) = sdl_library.get(#fname);
 #	include <nv/lib/detail/sdl_functions.inc>
+#	if NV_SDL_VERSION == NV_SDL_12
+#		include <nv/lib/detail/sdl_functions_12.inc>
+#	elif NV_SDL_VERSION == NV_SDL_20
+#		include <nv/lib/detail/sdl_functions_20.inc>
+#	endif
 #	undef NV_SDL_FUN
 	return true;
