path: root/missing.h
diff options
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)
* (ac_cv_func_setitimer): moved from defines.h
* defines.h, rubysig.h, signal.c: removed macro handling which should be done in configure. * (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:// b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'missing.h')
1 files changed, 4 insertions, 0 deletions
diff --git a/missing.h b/missing.h
index f3339f3..ac499bd 100644
--- a/missing.h
+++ b/missing.h
@@ -60,7 +60,11 @@ extern double erfc _((double));
#ifndef HAVE_ISINF
+# if defined(HAVE_FINITE) && defined(HAVE_ISNAN)
+# define isinf(x) (!finite(x) && !isnan(x))
+# else
extern int isinf _((double));
+# endif
#ifndef HAVE_ISNAN