* ext/bigdecimal/bigdecimal.c (isfinite): isfinite does not always

exist.  fixed build error on Windows itroduced at r55123.

I found that more complex definition of isfinite in numeric.c.
But it's unused because it inplicitly checks not defined _WIN32.
I don't know why the code do that.
IMO, the definition of isfinite should be put at missing.h.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55129 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2016-05-23 06:55:48 +00:00
Родитель 3d18ceab9a
Коммит 921ff3029b
2 изменённых файлов: 9 добавлений и 0 удалений

Просмотреть файл

@ -1,3 +1,8 @@
Mon May 23 15:52:07 2016 NAKAMURA Usaku <usa@ruby-lang.org>
* ext/bigdecimal/bigdecimal.c (isfinite): isfinite does not always
exist. fixed build error on Windows itroduced at r55123.
Mon May 23 13:19:41 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
* include/ruby/ruby.h (rb_scan_args0): make compile error if the

Просмотреть файл

@ -30,6 +30,10 @@
#include <ieeefp.h>
#endif
#if !defined(HAVE_ISFINITE) && defined(HAVE_FINITE)
# define isfinite(x) finite(x)
#endif
/* #define ENABLE_NUMERIC_STRING */
#define MUL_OVERFLOW_SIGNED_INTEGER_P(a, b, min, max) ( \