X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=src%2Frrd_config_bottom.h;fp=src%2Frrd_config_bottom.h;h=a569197ab9a8b709f0135895ad88b60248648852;hp=d04e592af13f56088cc10d88509201713506b934;hb=b3230fbfae987be002718a5a035db2030b880871;hpb=6d1c8e317b18e21448c6e7503d8ce98e7118c5ae diff --git a/src/rrd_config_bottom.h b/src/rrd_config_bottom.h index d04e592..a569197 100644 --- a/src/rrd_config_bottom.h +++ b/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 */