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 | 9a2b7f9a675a4fa01580208767d7a8a19a971656 (patch) | |
tree | 478cb8d5eea2295e24a69fa459c9a31af659566b | |
parent | 3bb606b245879dff4029d6bd96841cde5161f2a4 (diff) | |
download | ruby-9a2b7f9a675a4fa01580208767d7a8a19a971656.tar.gz ruby-9a2b7f9a675a4fa01580208767d7a8a19a971656.tar.xz ruby-9a2b7f9a675a4fa01580208767d7a8a19a971656.zip |
freebsd floating point
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@671 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-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 |