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.tokkee.org/?a=commitdiff_plain;h=4751bec36049828e021576b8760a4bc03dddd736;p=rrdtool-all.git call fpclass only once when replacing isnan for solaris git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1904 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/program/src/rrd_config_bottom.h b/program/src/rrd_config_bottom.h index d04e592a..a569197a 100644 --- a/program/src/rrd_config_bottom.h +++ b/program/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 */