projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Need #include <limits.h>. Thanks to "John McCabe-Dansted"
[pspp]
/
src
/
libpspp
/
misc.h
diff --git
a/src/libpspp/misc.h
b/src/libpspp/misc.h
index 2d30bddcc246c94cc698a7cd4ccb8fcb4a7cb542..fbd11eec3c32fc3f2536fbf6bc6ad4e80471e11c 100644
(file)
--- a/
src/libpspp/misc.h
+++ b/
src/libpspp/misc.h
@@
-26,17
+26,17
@@
/* HUGE_VAL is traditionally defined as positive infinity, or
alternatively, DBL_MAX. */
/* HUGE_VAL is traditionally defined as positive infinity, or
alternatively, DBL_MAX. */
-#if !HAVE_ISINF
+#if !HAVE_ISINF
&& !defined isinf
#define isinf(X) (fabs (X) == HUGE_VAL)
#endif
/* A Not a Number is not equal to itself. */
#define isinf(X) (fabs (X) == HUGE_VAL)
#endif
/* A Not a Number is not equal to itself. */
-#if !HAVE_ISNAN
+#if !HAVE_ISNAN
&& !defined isnan
#define isnan(X) ((X) != (X))
#endif
/* Finite numbers are not infinities or NaNs. */
#define isnan(X) ((X) != (X))
#endif
/* Finite numbers are not infinities or NaNs. */
-#if !HAVE_FINITE
+#if !HAVE_FINITE
&& !defined finite
#define finite(X) (!isinf (X) && !isnan (X))
#elif HAVE_IEEEFP_H
#include <ieeefp.h> /* Declares finite() under Solaris. */
#define finite(X) (!isinf (X) && !isnan (X))
#elif HAVE_IEEEFP_H
#include <ieeefp.h> /* Declares finite() under Solaris. */