From f526649ee3f53ffb40f4a2f7c8249fa2e345b157 Mon Sep 17 00:00:00 2001 From: Antonio Linares Date: Wed, 5 Apr 2006 12:30:23 +0000 Subject: [PATCH] some required changes for Microsoft C --- harbour/source/vm/mainwin.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/harbour/source/vm/mainwin.c b/harbour/source/vm/mainwin.c index b0f12c0a73..2f00a51c44 100644 --- a/harbour/source/vm/mainwin.c +++ b/harbour/source/vm/mainwin.c @@ -57,6 +57,12 @@ #if defined(HB_OS_WIN_32) +#if defined(_MSC_VER) +extern "C" { + LONG WINAPI hb_UnhandledExceptionFilter( struct _EXCEPTION_POINTERS * ExceptionInfo ); +}; +#endif + #define MAX_ARGS 128 static int s_argc = 0; @@ -73,7 +79,9 @@ int WINAPI WinMain( HINSTANCE hInstance, /* handle to current instance */ #ifdef HB_INCLUDE_WINEXCHANDLER { - LONG WINAPI hb_UnhandledExceptionFilter( struct _EXCEPTION_POINTERS * ExceptionInfo ); + #if ! defined(_MSC_VER) + LONG WINAPI hb_UnhandledExceptionFilter( struct _EXCEPTION_POINTERS * ExceptionInfo ); + #endif LPTOP_LEVEL_EXCEPTION_FILTER ef = SetUnhandledExceptionFilter( hb_UnhandledExceptionFilter ); HB_SYMBOL_UNUSED( ef ); }