diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-04-18 04:56:28 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-04-18 04:56:28 +0000 |
commit | c8f58f2a16c88603abe56c34b346cad5817975b3 (patch) | |
tree | 478cb8d5eea2295e24a69fa459c9a31af659566b /numeric.c | |
parent | cd09e4abd8f8ba814e093bfad9519fc7c05f03d9 (diff) | |
download | ruby-c8f58f2a16c88603abe56c34b346cad5817975b3.tar.gz |
freebsd floating point
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@671 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_version < 400012 #include <floatingpoint.h> #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 |