From 98d6f01de3969ecd0bdc6458e7fb2475e581e6f9 Mon Sep 17 00:00:00 2001 From: shyouhei Date: Sat, 7 Jun 2008 18:49:52 +0000 Subject: merge revision(s) 13914:13917: * missing/isinf.c (isinf): don't define if the macro is defined. * numeric.c (flodivmod): work around for infinity. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@16935 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- missing/isinf.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'missing') diff --git a/missing/isinf.c b/missing/isinf.c index e44ef6c3c1..c9e49c6795 100644 --- a/missing/isinf.c +++ b/missing/isinf.c @@ -28,12 +28,19 @@ isinf(n) #include #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 -- cgit v1.2.3