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/branches/ruby_1_8@13915 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
349377aab4
commit
579a92ae24
2 changed files with 11 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
Wed Nov 14 01:52:59 2007 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* missing/isinf.c (isinf): don't define is the macro is defined.
|
||||
|
||||
Wed Nov 14 01:34:42 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* numeric.c (round): fallback definition.
|
||||
|
|
|
@ -28,12 +28,19 @@ isinf(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(n)
|
||||
double n;
|
||||
{
|
||||
return (!finite(n) && !isnan(n));
|
||||
}
|
||||
#endif
|
||||
|
||||
#else
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue