1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* missing/isinf.c (isinf): don't define is the macro is defined.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13915 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2007-11-13 16:54:27 +00:00
parent fd3ef45a42
commit 093fe3b839
2 changed files with 11 additions and 0 deletions

View file

@ -27,11 +27,18 @@ isinf(double 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(double n)
{
return (!finite(n) && !isnan(n));
}
#endif
#else