-#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
#include <SDL.h>
+#include "quakedef.h"
+
// =======================================================================
// General routines
// =======================================================================
com_argc = argc;
com_argv = (const char **)argv;
+ Sys_ProvideSelfFD();
#ifndef WIN32
fcntl(0, F_SETFL, fcntl (0, F_GETFL, 0) | FNDELAY);