summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c29c7a3)
raw | patch | inline | side by side (parent: c29c7a3)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Fri, 25 Jun 2010 21:41:50 +0000 (21:41 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Fri, 25 Jun 2010 21:41:50 +0000 (21:41 +0000) |
src/rrd_config_bottom.h | patch | blob | history |
index a569197ab9a8b709f0135895ad88b60248648852..48a2db2612ef5888d06b74723dadab602f652ecd 100644 (file)
--- a/src/rrd_config_bottom.h
+++ b/src/rrd_config_bottom.h
#endif
/* for Solaris */
-#if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
-# define HAVE_ISINF 1
-# ifdef isinf
+#if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS) && defined(FP_NINF) && defined(FP_PINF))
+# define HAVE_ISINF 1
+# ifdef isinf
# undef isinf
-# endif
-# define isinf(a) (!!(fpclass(a) & (FP_SNAN|FP_QNAN)))
-
+# endif
+# define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
#endif
/* solaris 10 it defines isnan such that only forte can compile it ... bad bad */