]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sys_sdl.c
get rid of clang warnings for SETPVSBIT/CLEARPVSBIT
[xonotic/darkplaces.git] / sys_sdl.c
index d0efa8353c0c62a05fd7653370374f17ceaa17ac..833e00d58fd9282ac8a4e150beb902135fcd5665 100644 (file)
--- a/sys_sdl.c
+++ b/sys_sdl.c
@@ -1,6 +1,9 @@
-#include "quakedef.h"
 
 #ifdef WIN32
+#ifdef _MSC_VER
+#pragma comment(lib, "sdl.lib")
+#pragma comment(lib, "sdlmain.lib")
+#endif
 #include <io.h>
 #include "conio.h"
 #else
@@ -13,6 +16,8 @@
 
 #include <SDL.h>
 
+#include "quakedef.h"
+
 // =======================================================================
 // General routines
 // =======================================================================
@@ -168,6 +173,7 @@ int main (int argc, char *argv[])
 
        com_argc = argc;
        com_argv = (const char **)argv;
+       Sys_ProvideSelfFD();
 
 #ifndef WIN32
        fcntl(0, F_SETFL, fcntl (0, F_GETFL, 0) | FNDELAY);