summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-04 11:40:58 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-04 11:40:58 +0000
commit643462810e02bd3059d746104463170e800b6d64 (patch)
treee0e2534cf30a88907bc4ed50588f0eeb71cc6f5e
parent92a4740cf26ff332a51cab70c899ce8e9de1c0e1 (diff)
* numeric.c (round): added declaration. [ruby-dev:39222]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24750 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--numeric.c5
2 files changed, 6 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index e9ba787b88..7fef1a06ae 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Fri Sep 4 20:40:57 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * numeric.c (round): added declaration. [ruby-dev:39222]
+
Fri Sep 4 09:52:58 2009 URABE Shyouhei <shyouhei@ruby-lang.org>
* NEWS: forgot to mention about new looser splats.
diff --git a/numeric.c b/numeric.c
index e6d7ea8803..eb5657b494 100644
--- a/numeric.c
+++ b/numeric.c
@@ -63,6 +63,8 @@
#define DBL_EPSILON 2.2204460492503131e-16
#endif
+extern double round _((double));
+
#ifndef HAVE_ROUND
double
round(x)
@@ -80,9 +82,6 @@ round(x)
}
return x;
}
-#elif defined(__BEOS__)
- /* appears to be a bug in the BeOS headers */
- double round(double x);
#endif
static ID id_coerce, id_to_i, id_eq;