From 4751bec36049828e021576b8760a4bc03dddd736 Mon Sep 17 00:00:00 2001 From: oetiker Date: Mon, 24 Aug 2009 12:02:32 +0000 Subject: [PATCH] call fpclass only once when replacing isnan for solaris git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1904 a5681a0c-68f1-0310-ab6d-d61299d08faa --- program/src/rrd_config_bottom.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 */ -- 2.30.2