summaryrefslogtreecommitdiff
path: root/numeric.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-08 14:12:52 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-08 14:12:52 +0000
commit9487b2cdfc05b6ee0a739676526067daa59e4e4a (patch)
treeb19b8eef70a4632d2a446a223e29cc421f78697d /numeric.c
parent444f08f6619a65c06a1add22cae361e21c6dc934 (diff)
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
Diffstat (limited to 'numeric.c')
-rw-r--r--numeric.c4
1 files changed, 4 insertions, 0 deletions
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