From b21688d42aedcfe45e93200127d03ed96177cb9c Mon Sep 17 00:00:00 2001 From: Alex Shashkov Date: Fri, 23 Feb 2001 16:48:40 +0000 Subject: [PATCH] 2001-02-23 19:35 UTC+0300 Alex Shashkov * harbour/source/rtl/filesys.c * harbour/source/vm/item.c ! Fixed support for Watcom C 11.0 --- harbour/ChangeLog | 6 ++++++ harbour/source/rtl/filesys.c | 2 +- harbour/source/vm/itemapi.c | 5 +++-- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 584e55f149..7d60472f04 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -1,3 +1,9 @@ +2001-02-23 19:35 UTC+0300 Alex Shashkov + * harbour/source/rtl/filesys.c + * harbour/source/rtl/math.c + * harbour/source/vm/item.c + ! Fixed support for Watcom C 11.0 + 2001-02-23 08:25 UTC-0800 Ron Pinkas * contrib/dot/pp.prg + Added support for DO <>.prg diff --git a/harbour/source/rtl/filesys.c b/harbour/source/rtl/filesys.c index 8087549b1d..905889944a 100644 --- a/harbour/source/rtl/filesys.c +++ b/harbour/source/rtl/filesys.c @@ -193,7 +193,7 @@ static USHORT s_uiErrorLast = 0; #define HB_FS_FILE_IO #endif -#if defined(_MSC_VER) || defined(__MINGW32__) || defined(__IBMCPP__) +#if defined(_MSC_VER) || defined(__MINGW32__) || defined(__IBMCPP__) || defined(__WATCOMC__) /* These compilers use sopen() rather than open(), because their versions of open() do not support combined O_ and SH_ flags */ #define HB_FS_SOPEN diff --git a/harbour/source/vm/itemapi.c b/harbour/source/vm/itemapi.c index 7979b7548a..a0a14df125 100644 --- a/harbour/source/vm/itemapi.c +++ b/harbour/source/vm/itemapi.c @@ -1299,7 +1299,8 @@ char * hb_itemStr( PHB_ITEM pNumber, PHB_ITEM pWidth, PHB_ITEM pDec ) { double dNumber = hb_itemGetND( pNumber ); - #ifndef __BORLANDC__ + #if defined(__BORLANDC__) || defined(__WATCOMC__) + #else static double s_dInfinity = 0; static double s_bInfinityInit = FALSE; @@ -1311,7 +1312,7 @@ char * hb_itemStr( PHB_ITEM pNumber, PHB_ITEM pWidth, PHB_ITEM pDec ) #endif if( pNumber->item.asDouble.length == 99 - #if defined(__BORLANDC__) + #if defined(__BORLANDC__) || defined(__WATCOMC__) /* No more checks for Borland C, which returns 0 for log( 0 ), and is therefore unable to test for infinity */ #else