summaryrefslogtreecommitdiff
path: root/missing/isinf.c
diff options
context:
space:
mode:
Diffstat (limited to 'missing/isinf.c')
-rw-r--r--missing/isinf.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/missing/isinf.c b/missing/isinf.c
index eecb3eb498..4aef51b213 100644
--- a/missing/isinf.c
+++ b/missing/isinf.c
@@ -27,11 +27,18 @@ isinf(double n)
#include <ieeefp.h>
#endif
+/*
+ * isinf may be provided only as a macro.
+ * ex. HP-UX, Solaris 10
+ * http://www.gnu.org/software/automake/manual/autoconf/Function-Portability.html
+ */
+#ifndef isinf
int
isinf(double n)
{
return (!finite(n) && !isnan(n));
}
+#endif
#else