diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-05-01 09:42:38 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-05-01 09:42:38 +0000 |
commit | 0b0db73683a163b62556e3c39320b350642e3191 (patch) | |
tree | 816b0f807ceea1627cfb090be0147bb619a12340 /numeric.c | |
parent | 42fc13311f0102f5668ebb837bd5f63c812e7b4b (diff) |
2000-05-01
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_4@678 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'numeric.c')
-rw-r--r-- | numeric.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -13,7 +13,7 @@ #include "ruby.h" #include <math.h> #include <stdio.h> -#ifdef __FreeBSD__ +#if defined(__FreeBSD__) && __FreeBSD__ < 4 #include <floatingpoint.h> #endif @@ -1410,7 +1410,7 @@ fix_zero_p(num) void Init_Numeric() { -#ifdef __FreeBSD__ +#if defined(__FreeBSD__) && __FreeBSD__ < 4 /* allow divide by zero -- Inf */ fpsetmask(fpgetmask() & ~(FP_X_DZ|FP_X_INV|FP_X_OFL)); #endif |