X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=src%2Frrd_config_bottom.h;h=d04e592af13f56088cc10d88509201713506b934;hp=ec191b9e0f7ced35c116061c9a02b9be474d7ef9;hb=f0a82ae15cafb6ad47ea0c9f74754820e92e2078;hpb=734d64e1e4744aa0994cc7956263ac72e3d42eb1 diff --git a/src/rrd_config_bottom.h b/src/rrd_config_bottom.h index ec191b9..d04e592 100644 --- a/src/rrd_config_bottom.h +++ b/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