projects
/
rrdtool.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
set locale to C while restoring
[rrdtool.git]
/
src
/
rrd_config_bottom.h
diff --git
a/src/rrd_config_bottom.h
b/src/rrd_config_bottom.h
index
ec191b9
..
a569197
100644
(file)
--- a/
src/rrd_config_bottom.h
+++ b/
src/rrd_config_bottom.h
@@
-175,17
+175,18
@@
char *strchr (), *strrchr ();
# ifdef isinf
# undef isinf
# endif
# 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 */
#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 */
# 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
# define HAVE_ISINF 1
# define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
#endif