X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=src%2Frrd_config_bottom.h;h=e7d0a38f6d1d8f28c5bcf49697de165ddf87782d;hp=4bf9d9cfcddc6a1442108a0d89ea5ac95433a9cc;hb=96b0f4aace0deef034a792a08dc2d426cd2b61a4;hpb=2e8928599355e8fde32ff9361db58baeae7e06ea diff --git a/src/rrd_config_bottom.h b/src/rrd_config_bottom.h index 4bf9d9c..e7d0a38 100644 --- a/src/rrd_config_bottom.h +++ b/src/rrd_config_bottom.h @@ -178,6 +178,11 @@ char *strchr (), *strrchr (); # define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF) #endif +/* solaris 8/9 has rint but not round */ +#if (! defined(HAVE_ROUND) && defined(HAVE_RINT)) +# define round rint +#endif + /* solaris 10 it defines isnan such that only forte can compile it ... bad bad */ #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS)) # undef isnan @@ -190,12 +195,12 @@ char *strchr (), *strrchr (); # define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF) #endif -#if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY)) +#if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_MINUS_INF) && defined(FP_PLUS_INF)) # define HAVE_ISINF 1 # define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF) #endif -#if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY)) +#if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE)) # define HAVE_ISINF 1 # define isinf(a) (fpclassify(a) == FP_INFINITE) #endif