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