summaryrefslogtreecommitdiff
path: root/missing.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-12-22 08:23:55 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-12-22 08:23:55 +0000
commit748b699d1b39cf9db5190a9b5f25fa8f32291677 (patch)
treeeeadf9e794d838ec4b899dcb3f1ff7c527f4911f /missing.h
parent25b6ac95f2d2b034832e95a41536106c17c0fa07 (diff)
* configure.in (ac_cv_func_setitimer): moved from defines.h
* defines.h, rubysig.h, signal.c: removed macro handling which should be done in configure. * configure.in (intrinsics.h): check if present. * ruby.h: include intrinsics.h if available. * bignum.c, marshal.c: include ieeefp.h if available. * missing.h (isinf): define as a macro if finite() and isnan() are available. [ruby-core:02032] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5244 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'missing.h')
-rw-r--r--missing.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/missing.h b/missing.h
index f3339f3200..ac499bd7d7 100644
--- a/missing.h
+++ b/missing.h
@@ -60,7 +60,11 @@ extern double erfc _((double));
#endif
#ifndef HAVE_ISINF
+# if defined(HAVE_FINITE) && defined(HAVE_ISNAN)
+# define isinf(x) (!finite(x) && !isnan(x))
+# else
extern int isinf _((double));
+# endif
#endif
#ifndef HAVE_ISNAN