From 7f28d184c42b61837fc8b7caec586d81d4e205a5 Mon Sep 17 00:00:00 2001 From: Andi Jahja Date: Fri, 28 Dec 2001 05:25:37 +0000 Subject: [PATCH] Andi Jahja --- harbour/source/vm/hvm.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/harbour/source/vm/hvm.c b/harbour/source/vm/hvm.c index 448226d7b0..71f5d3a900 100644 --- a/harbour/source/vm/hvm.c +++ b/harbour/source/vm/hvm.c @@ -84,7 +84,9 @@ #include "hbpcode.h" #include "hbset.h" -BOOL hb_StartApp( void ); /* placed at source/vm/dynlibhb.c */ +#if ( defined(HB_OS_WIN_32) && defined(__BORLANDC__) ) + BOOL hb_StartApp( void ); /* placed at source/vm/dynlibhb.c */ +#endif #ifdef HB_MACRO_STATEMENTS #include "hbpp.h" @@ -4307,7 +4309,9 @@ void HB_EXPORT hb_vmProcessSymbols( PHB_SYMB pModuleSymbols, USHORT uiModuleSymb hSymScope = ( pModuleSymbols + ui )->cScope; pNewSymbols->hScope |= hSymScope; if( ( ! s_pSymStart ) && ( hSymScope & HB_FS_FIRST && ! ( hSymScope & HB_FS_INITEXIT ) ) ) - if( hb_StartApp() ) /* Are we calling this from the main application ? */ + #if ( defined(HB_OS_WIN_32) && defined(__BORLANDC__) ) + if( hb_StartApp() ) /* Are we calling this from the main application ? */ + #endif s_pSymStart = pModuleSymbols + ui; /* first public defined symbol to start execution */ if( ( hSymScope == HB_FS_PUBLIC ) || ( hSymScope & ( HB_FS_MESSAGE | HB_FS_MEMVAR | HB_FS_FIRST ) ) ) @@ -4690,4 +4694,4 @@ void HB_EXPORT hb_vmProcessDllSymbols( PHB_SYMB pModuleSymbols, USHORT uiModuleS hb_dynsymNew( ( pModuleSymbols + ui ) ); } } -} \ No newline at end of file +}