зеркало из https://github.com/github/ruby.git
missing.h: isfinite
* include/ruby/missing.h (isfinite): move from numeric.c. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55136 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
d45c09fb12
Коммит
88cc25f96d
|
@ -1,3 +1,7 @@
|
|||
Mon May 23 21:33:36 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* include/ruby/missing.h (isfinite): move from numeric.c.
|
||||
|
||||
Mon May 23 21:09:06 2016 Kazuki Yamaguchi <k@rhe.jp>
|
||||
|
||||
* ext/openssl/ossl.c (Init_openssl): Avoid reference to unset global
|
||||
|
|
|
@ -30,10 +30,6 @@
|
|||
#include <ieeefp.h>
|
||||
#endif
|
||||
|
||||
#if !defined(HAVE_ISFINITE) && defined(HAVE_FINITE) && !defined(isfinite)
|
||||
# define isfinite(x) finite(x)
|
||||
#endif
|
||||
|
||||
/* #define ENABLE_NUMERIC_STRING */
|
||||
|
||||
#define MUL_OVERFLOW_SIGNED_INTEGER_P(a, b, min, max) ( \
|
||||
|
|
|
@ -174,6 +174,13 @@ RUBY_EXTERN int isnan(double);
|
|||
# endif
|
||||
#endif
|
||||
|
||||
#ifndef isfinite
|
||||
# ifndef HAVE_ISFINITE
|
||||
# define HAVE_ISFINITE 1
|
||||
# define isfinite(x) finite(x)
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_NEXTAFTER
|
||||
RUBY_EXTERN double nextafter(double x, double y);
|
||||
#endif
|
||||
|
|
|
@ -24,14 +24,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
|
||||
|
|
Загрузка…
Ссылка в новой задаче