From c8f58f2a16c88603abe56c34b346cad5817975b3 Mon Sep 17 00:00:00 2001 From: matz Date: Tue, 18 Apr 2000 04:56:28 +0000 Subject: freebsd floating point git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@671 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- numeric.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'numeric.c') diff --git a/numeric.c b/numeric.c index 447817c625..d308afef47 100644 --- a/numeric.c +++ b/numeric.c @@ -13,7 +13,7 @@ #include "ruby.h" #include #include -#ifdef __FreeBSD__ +#if defined(FreeBSD) && __FreeBSD_version < 400012 #include #endif @@ -1451,7 +1451,7 @@ fix_zero_p(num) void Init_Numeric() { -#ifdef __FreeBSD__ +#if defined(FreeBSD) && __FreeBSD_version < 400012 /* allow divide by zero -- Inf */ fpsetmask(fpgetmask() & ~(FP_X_DZ|FP_X_INV|FP_X_OFL)); #endif -- cgit v1.2.3