From 627c64b8ac41ba2aa2fe75953cbc2dcf941dc8b0 Mon Sep 17 00:00:00 2001 From: Przemyslaw Czerpak Date: Thu, 11 Oct 2012 21:35:29 +0000 Subject: [PATCH] 2012-10-11 23:35 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl) * harbour/src/common/hbprintf.c + added HB_NO_MODFL compile time macro. It can be used on some old systems which do not have modfl() function. In such case it's enough to set HB_USER_CFLAGS=-DHB_NO_MODFL --- harbour/ChangeLog | 6 ++++++ harbour/src/common/hbprintf.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 56ef8e7d6b..b11caaf225 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -16,6 +16,12 @@ The license applies to all entries newer than 2009-04-28. */ +2012-10-11 23:35 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl) + * harbour/src/common/hbprintf.c + + added HB_NO_MODFL compile time macro. + It can be used on some old systems which do not have modfl() function. + In such case it's enough to set HB_USER_CFLAGS=-DHB_NO_MODFL + 2012-10-11 20:59 UTC+0200 Viktor Szakats (harbour syenar.net) * utils/hbmk2/hbmk2.prg ! fixed handling of -ku: option. Now hbmk2 will pass diff --git a/harbour/src/common/hbprintf.c b/harbour/src/common/hbprintf.c index 9e9802644e..a556d735d5 100644 --- a/harbour/src/common/hbprintf.c +++ b/harbour/src/common/hbprintf.c @@ -168,7 +168,8 @@ optimized. # define _MODFD( x, p ) modf( x, p ) # else # define _x_long_dbl long double -# if defined( __WATCOMC__ ) || defined( __MINGW32CE__ ) || defined( HB_OS_CYGWIN ) || \ +# if defined( HB_NO_MODFL ) || \ + defined( __WATCOMC__ ) || defined( __MINGW32CE__ ) || defined( HB_OS_CYGWIN ) || \ defined( HB_OS_BEOS ) || defined( HB_OS_IPHONE ) || defined( HB_OS_SYMBIAN ) || \ defined( __OpenBSD__ ) || defined( __NetBSD__ ) || defined( __DragonFly__ ) || \ ( defined( __FreeBSD_version ) && __FreeBSD_version < 603000 ) || \