From 1ac0a60e28b3b814e9b13dd0e2a8dca6a62496be Mon Sep 17 00:00:00 2001 From: Przemyslaw Czerpak Date: Tue, 10 Jun 2008 17:36:27 +0000 Subject: [PATCH] 2008-06-10 19:36 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/source/rtl/gtwvt/gtwvt.c ! do not use min()/max() C functions. These are not portable functions. Use HB_MIN()/HB_MAX() macros instead. --- harbour/ChangeLog | 5 +++++ harbour/source/rtl/gtwvt/gtwvt.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 4cc4bf19a8..180939ab5a 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -8,6 +8,11 @@ 2008-12-31 13:59 UTC+0100 Foo Bar */ +2008-06-10 19:36 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) + * harbour/source/rtl/gtwvt/gtwvt.c + ! do not use min()/max() C functions. These are not portable + functions. Use HB_MIN()/HB_MAX() macros instead. + 2008-06-10 19:03 UTC+0100 Viktor Szakats (harbour.01 syenar hu) * contrib/hbw32/dllcall.c ! Fixed memory corruption when more than 15 parameters diff --git a/harbour/source/rtl/gtwvt/gtwvt.c b/harbour/source/rtl/gtwvt/gtwvt.c index bfb38bc43e..5b1111a240 100644 --- a/harbour/source/rtl/gtwvt/gtwvt.c +++ b/harbour/source/rtl/gtwvt/gtwvt.c @@ -204,7 +204,7 @@ static PHB_GTWVT hb_gt_wvt_New( PHB_GT pGT ) pWVT->CaretExist = FALSE; pWVT->CaretHidden = FALSE; - pWVT->CaretSize = max( ( pWVT->PTEXTSIZE.y >> 2 ) - 1, 1 ); + pWVT->CaretSize = HB_MAX( ( pWVT->PTEXTSIZE.y >> 2 ) - 1, 1 ); pWVT->MousePos.x = 0; pWVT->MousePos.y = 0; pWVT->MouseMove = TRUE; @@ -346,7 +346,7 @@ static void hb_gt_wvt_UpdateCaret( PHB_GTWVT pWVT ) iCaretSize = - ( pWVT->PTEXTSIZE.y >> 1 ); break; case SC_NORMAL: - iCaretSize = max( ( pWVT->PTEXTSIZE.y >> 2 ) - 1, 1 ); + iCaretSize = HB_MAX( ( pWVT->PTEXTSIZE.y >> 2 ) - 1, 1 ); break; default: iCaretSize = 0;