From: oetiker Date: Fri, 21 Aug 2009 05:03:40 +0000 (+0000) Subject: make sure all elements required in the definition of isinf are defined in their turn X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=69dcd13721862b036247adc2dfdbfa066f429b34;p=rrdtool-all.git make sure all elements required in the definition of isinf are defined in their turn git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1902 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/program/m4/acinclude.m4 b/program/m4/acinclude.m4 index c1e5c4bd..01eb4a41 100644 --- a/program/m4/acinclude.m4 +++ b/program/m4/acinclude.m4 @@ -363,13 +363,13 @@ AC_CACHE_VAL([rd_cv_ieee_$2], #endif /* solaris 10 it defines isnan such that only forte can compile it ... bad bad */ -#if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS)) +#if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS) && defined(FP_SNAN) && defined(FP_QNAN)) # undef isnan # define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN) #endif /* Digital UNIX */ -#if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H)) +#if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H) && defined(FP_NEG_INF) && defined( FP_POS_INF) ) # define HAVE_ISINF 1 # define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF) #endif diff --git a/program/src/rrd_config_bottom.h b/program/src/rrd_config_bottom.h index ec191b9e..d04e592a 100644 --- a/program/src/rrd_config_bottom.h +++ b/program/src/rrd_config_bottom.h @@ -179,13 +179,13 @@ char *strchr (), *strrchr (); #endif /* solaris 10 it defines isnan such that only forte can compile it ... bad bad */ -#if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS)) +#if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS) && defined(FP_SNAN) && defined(FP_QNAN)) # undef isnan # define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN) #endif /* for OSF1 Digital Unix */ -#if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H)) +#if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H) && defined(FP_NEG_INF) && defined( FP_POS_INF)) # define HAVE_ISINF 1 # define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF) #endif