From 9487b2cdfc05b6ee0a739676526067daa59e4e4a Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 8 Jul 2013 14:12:52 +0000 Subject: [PATCH] numeric.c: for strict ANSI * numeric.c (finite): add declaration for strict ANSI. [ruby-core:55312] [Bug #8495] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41835 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 ++++- numeric.c | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 5dc45a0c25..ca943af568 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,7 @@ -Mon Jul 8 23:12:22 2013 Nobuyoshi Nakada +Mon Jul 8 23:12:48 2013 Nobuyoshi Nakada + + * numeric.c (finite): add declaration for strict ANSI. + [ruby-core:55312] [Bug #8495] * thread_win32.c (w32_thread_start_func, thread_start_func_1), (timer_thread_func): use __stdcall instead of _stdcall which is diff --git a/numeric.c b/numeric.c index 6752becc00..1e9a3bc6d7 100644 --- a/numeric.c +++ b/numeric.c @@ -30,6 +30,10 @@ #include #endif +#if defined HAVE_FINITE && !defined finite +extern int finite(double); +#endif + /* use IEEE 64bit values if not defined */ #ifndef FLT_RADIX #define FLT_RADIX 2