From 86624aa2d7714fc8da85f7f82af1ddd382c8ebd3 Mon Sep 17 00:00:00 2001 From: akr Date: Tue, 13 Nov 2007 16:54:27 +0000 Subject: * missing/isinf.c (isinf): don't define is the macro is defined. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13915 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 eecb3eb49..4aef51b21 100644 --- a/missing/isinf.c +++ b/missing/isinf.c @@ -27,11 +27,18 @@ isinf(double 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(double n) { return (!finite(n) && !isnan(n)); } +#endif #else -- cgit