From 7bc8a8c5065885698ea6fe598df0e887f8dc491a Mon Sep 17 00:00:00 2001 From: Przemyslaw Czerpak Date: Tue, 18 May 2010 16:54:37 +0000 Subject: [PATCH] 2010-05-18 18:54 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/contrib/hbwin/win_svc.c ! fixed compilation with compilers which disable winsvc.h if WIN32_LEAN_AND_MEAN is set, i.e. POCC and XCC --- harbour/ChangeLog | 5 +++++ harbour/contrib/hbwin/win_svc.c | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 0a932a5c06..b195eb744b 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -17,6 +17,11 @@ past entries belonging to author(s): Viktor Szakats. */ +2010-05-18 18:54 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) + * harbour/contrib/hbwin/win_svc.c + ! fixed compilation with compilers which disable winsvc.h + if WIN32_LEAN_AND_MEAN is set, i.e. POCC and XCC + 2010-05-18 09:19 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) * src/rtl/memvarhb.prg * HB_MVSAVE(): reset to be a FUNCTION to avoid the "volatile" diff --git a/harbour/contrib/hbwin/win_svc.c b/harbour/contrib/hbwin/win_svc.c index 77ed64fc9c..a8924c4a08 100644 --- a/harbour/contrib/hbwin/win_svc.c +++ b/harbour/contrib/hbwin/win_svc.c @@ -56,6 +56,10 @@ #if ! defined( HB_OS_WIN_CE ) +#if defined( __POCC__ ) || defined( __XCC__ ) +# include /* it's disabled by WIN32_LEAN_AND_MEAN */ +#endif + static SERVICE_STATUS s_ServiceStatus; static SERVICE_STATUS_HANDLE s_hStatus; static char s_szHarbourEntryFunc[ HB_SYMBOL_NAME_LEN + 1 ];