X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=sys_win.c;h=de1f47187c2e0f766414bebf630c3d62cdcae9ed;hb=58ec4585483b36354e814171c95f61d3caf9ffb0;hp=2ed54abcac1775b6c784e4780cb62c7918d6a511;hpb=83999e441c2aee1fc3b940c890597d15b5d72663;p=xonotic%2Fdarkplaces.git diff --git a/sys_win.c b/sys_win.c index 2ed54abc..de1f4718 100644 --- a/sys_win.c +++ b/sys_win.c @@ -19,16 +19,19 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ // sys_win.c -- Win32 system interface code -#include "quakedef.h" #include #include +#include #ifdef SUPPORTDIRECTX #include #endif -#include "errno.h" + +#include "qtypes.h" + +#include "quakedef.h" +#include #include "resource.h" #include "conproc.h" -#include "direct.h" HANDLE hinput, houtput; @@ -355,6 +358,8 @@ int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLin } } + Sys_ProvideSelfFD(); + Host_Main(); /* return success of application */