summaryrefslogtreecommitdiff
path: root/missing
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-11-13 16:54:27 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-11-13 16:54:27 +0000
commit579a92ae24ab46087a37d9cccf76e18865460ae2 (patch)
tree69df76d47aff720ca218995312eda82b9d346b1f /missing
parent349377aab4cde3da48d291d4d95e87694a5e883e (diff)
* missing/isinf.c (isinf): don't define is the macro is defined.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13915 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'missing')
-rw-r--r--missing/isinf.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/missing/isinf.c b/missing/isinf.c
index e44ef6c..c9e49c6 100644
--- a/missing/isinf.c
+++ b/missing/isinf.c
@@ -28,12 +28,19 @@ isinf(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(n)
double n;
{
return (!finite(n) && !isnan(n));
}
+#endif
#else