X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frrd_config_bottom.h;h=a569197ab9a8b709f0135895ad88b60248648852;hb=2a7262ebb15ad48133e5a7c7f24449013661a559;hp=d04e592af13f56088cc10d88509201713506b934;hpb=f0a82ae15cafb6ad47ea0c9f74754820e92e2078;p=rrdtool.git 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 */