summaryrefslogtreecommitdiffstats
path: root/numeric.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-19 00:33:19 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-19 00:33:19 +0000
commit232547b3bf17527c6463e12286f16454a77d546b (patch)
tree115dc5659dd3426eb7a7b04f723e40a0b1a076fd /numeric.c
parente2f5aaca9b26dafd13ffaf81b781f48b0bb167cb (diff)
downloadruby-232547b3bf17527c6463e12286f16454a77d546b.tar.gz
ruby-232547b3bf17527c6463e12286f16454a77d546b.tar.xz
ruby-232547b3bf17527c6463e12286f16454a77d546b.zip
* dln.c: newer BeOS support. a patch from Pete Goodeve
<pete.goodeve at computer.org> in [ruby-core:18712]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19426 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'numeric.c')
-rw-r--r--numeric.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/numeric.c b/numeric.c
index 6301adecd..7cecfeb02 100644
--- a/numeric.c
+++ b/numeric.c
@@ -78,6 +78,9 @@ 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;