From: oetiker Date: Mon, 24 Aug 2009 12:02:32 +0000 (+0000) Subject: call fpclass only once when replacing isnan for solaris X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=b3230fbfae987be002718a5a035db2030b880871;p=rrdtool.git call fpclass only once when replacing isnan for solaris git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1904 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/src/rrd_config_bottom.h b/src/rrd_config_bottom.h index d04e592..a569197 100644 --- a/src/rrd_config_bottom.h +++ b/src/rrd_config_bottom.h @@ -175,7 +175,8 @@ char *strchr (), *strrchr (); # ifdef isinf # undef isinf # endif -# define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF) +# define isinf(a) (!!(fpclass(a) & (FP_SNAN|FP_QNAN))) + #endif /* solaris 10 it defines isnan such that only forte can compile it ... bad bad */