summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--numeric.c4
2 files changed, 8 insertions, 1 deletions
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 <nobu@ruby-lang.org>
+Mon Jul 8 23:12:48 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * 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 <ieeefp.h>
#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