mirror of
https://github.com/ruby/ruby.git
synced 2025-09-16 17:14:01 +02:00
merge revision(s) 55123,55129,55130,55133,55136: [Backport #12414]
* ext/bigdecimal/bigdecimal.c (GetVpValueWithPrec): consider non-finite float values not to raise FloatDomainError. [ruby-core:75682] [Bug #12414] * ext/bigdecimal/bigdecimal.c (isfinite): isfinite does not always exist. fixed build error on Windows itroduced at r55123. exist. fixed build error on Windows introduced at r55123. * ext/bigdecimal/bigdecimal.c (isfinite): get rid of a warning on cygwin. [Bug #12417][ruby-core:75691] * include/ruby/missing.h (isfinite): move from numeric.c. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@55354 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f1cae09ec4
commit
0a619ef7ef
6 changed files with 46 additions and 9 deletions
|
@ -28,14 +28,6 @@
|
|||
#include <ieeefp.h>
|
||||
#endif
|
||||
|
||||
#if !defined HAVE_ISFINITE && !defined isfinite
|
||||
#if defined HAVE_FINITE && !defined finite && !defined _WIN32
|
||||
extern int finite(double);
|
||||
# define HAVE_ISFINITE 1
|
||||
# define isfinite(x) finite(x)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* use IEEE 64bit values if not defined */
|
||||
#ifndef FLT_RADIX
|
||||
#define FLT_RADIX 2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue