From 9a0c94058946b64c78f82a5d65b23c5d7ff0b194 Mon Sep 17 00:00:00 2001 From: oetiker Date: Fri, 25 Jun 2010 21:41:50 +0000 Subject: [PATCH] fixed solaris regression introduced in r1904 ... now the isnan macro should work again ... git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@2093 a5681a0c-68f1-0310-ab6d-d61299d08faa --- program/src/rrd_config_bottom.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/program/src/rrd_config_bottom.h b/program/src/rrd_config_bottom.h index a569197a..48a2db26 100644 --- a/program/src/rrd_config_bottom.h +++ b/program/src/rrd_config_bottom.h @@ -170,13 +170,12 @@ char *strchr (), *strrchr (); #endif /* for Solaris */ -#if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS)) -# define HAVE_ISINF 1 -# ifdef isinf +#if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS) && defined(FP_NINF) && defined(FP_PINF)) +# define HAVE_ISINF 1 +# ifdef isinf # undef isinf -# endif -# define isinf(a) (!!(fpclass(a) & (FP_SNAN|FP_QNAN))) - +# endif +# define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF) #endif /* solaris 10 it defines isnan such that only forte can compile it ... bad bad */ -- 2.30.2