From c316584de40b10801d4ced67c80f01965ee71c53 Mon Sep 17 00:00:00 2001 From: Spoike Date: Tue, 13 Sep 2005 07:10:18 +0000 Subject: [PATCH] Fix stuph. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1303 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/sys_win.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/engine/client/sys_win.c b/engine/client/sys_win.c index 3d551aed4..a93c0ae92 100644 --- a/engine/client/sys_win.c +++ b/engine/client/sys_win.c @@ -957,13 +957,15 @@ HWND hwnd_dialog; qboolean isDedicated = false; #endif +#ifdef _MSC_VER #include -void Signal_Error_Handler(int i) +void VARGS Signal_Error_Handler(int i) { int *basepointer; __asm {mov basepointer,ebp}; Sys_Error("Receieved signal, offset was 0x%8x", basepointer[73]); } +#endif int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { @@ -979,9 +981,13 @@ int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLin if (hPrevInstance) return 0; +#ifndef _DEBUG +#ifdef _MSC_VER signal (SIGFPE, Signal_Error_Handler); signal (SIGILL, Signal_Error_Handler); signal (SIGSEGV, Signal_Error_Handler); +#endif +#endif global_hInstance = hInstance; global_nCmdShow = nCmdShow;