summaryrefslogtreecommitdiffstats
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
commit0eecd0313264c0858f23b51134e50609228ae622 (patch)
tree4fcbab87f937a764b89515a9310eb2c8d5ba06f9
parent5fe298ff40fdfcf8bf4ca7cad9cd43603889e878 (diff)
downloadruby-0eecd0313264c0858f23b51134e50609228ae622.tar.gz
ruby-0eecd0313264c0858f23b51134e50609228ae622.tar.xz
ruby-0eecd0313264c0858f23b51134e50609228ae622.zip
* numeric.c (round): added declaration. [ruby-dev:39222]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@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 2bd73ef4f..898b54945 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 06:15:39 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
* dir.c (Init_Dir): alias Dir#path to Dir#to_path. [ruby-core:25326]
diff --git a/numeric.c b/numeric.c
index 7f74cde56..09a6ef329 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(double x)
@@ -79,9 +81,6 @@ round(double 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;