some required changes for Microsoft C

This commit is contained in:
Antonio Linares
2006-04-05 12:30:23 +00:00
parent 56fdc28b7d
commit f526649ee3

View File

@@ -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 );
}