2009-03-11 22:48 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)

* harbour/source/common/hbgete.c
    * disabled unsetenv() from Watcom builds - looks that this function
      exists only in OpenWatcom header files.

  * harbour/source/common/hbprintf.c
    * do not use some FL functions which operates on long double values
      in SunOS builds
This commit is contained in:
Przemyslaw Czerpak
2009-03-11 21:42:29 +00:00
parent d44fea92a9
commit 5f9ae2e313
3 changed files with 11 additions and 5 deletions

View File

@@ -8,6 +8,15 @@
2009-12-31 13:59 UTC+0100 Foo Bar (foo.bar foobar.org)
*/
2009-03-11 22:48 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/common/hbgete.c
* disabled unsetenv() from Watcom builds - looks that this function
exists only in OpenWatcom header files.
* harbour/source/common/hbprintf.c
* do not use some FL functions which operates on long double values
in SunOS builds
2009-03-11 17:45 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbdate.h
* harbour/source/common/hbgete.c

View File

@@ -166,15 +166,12 @@ BOOL hb_setenv( const char * szName, const char * szValue )
{
# if ( defined( __DJGPP__ ) && \
( __DJGPP__ < 2 || ( __DJGPP__ == 2 && __DJGPP_MINOR__ < 4 ) ) ) || \
( defined( __WATCOMC__ ) && defined( HB_OS_LINUX ) )
defined( __WATCOMC__ )
szValue = getenv( szName );
if( szValue && *szValue )
return setenv( szName, "", 1 ) == 0;
else
return TRUE;
# elif defined( __WATCOMC__ )
unsetenv( szName );
return TRUE;
# else
return unsetenv( szName ) == 0;
# endif

View File

@@ -194,7 +194,7 @@ optimized.
defined( _XOPEN_SOURCE ) )
/* use BSD floating point functions */
# ifdef __NO_LONGDOUBLE__
# if defined( __NO_LONGDOUBLE__ ) || defined( HB_OS_SUNOS )
# define HB_NUMTYPE( v, d ) do { \
v = ( finite( d ) ? 0 : \
( isnan( d ) ? _HB_NUM_NAN : \