diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-05-12 23:46:43 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-05-12 23:46:43 +0000 |
commit | da696ae7949a8e0a7db12fefb2c68aff67b74654 (patch) | |
tree | 34c9d535839fb13f34fa59be6c15b99593cc1fb8 /numeric.c | |
parent | 8cd05857c696dc4c576bf392afbc749fba5b30eb (diff) | |
download | ruby-da696ae7949a8e0a7db12fefb2c68aff67b74654.tar.gz |
drop FreeBSD < 4 support
* NEWS: drop FreeBSD < 4 support.
The most recent version affected by this is 3.5 and was released
in 2000.
https://www.freebsd.org/releases/3.5R/announce.html
https://en.wikipedia.org/wiki/History_of_FreeBSD#Version_history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54992 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'numeric.c')
-rw-r--r-- | numeric.c | 9 |
1 files changed, 1 insertions, 8 deletions
@@ -16,10 +16,6 @@ #include <math.h> #include <stdio.h> -#if defined(__FreeBSD__) && __FreeBSD__ < 4 -#include <floatingpoint.h> -#endif - #ifdef HAVE_FLOAT_H #include <float.h> #endif @@ -4871,10 +4867,7 @@ Init_Numeric(void) #undef rb_intern #define rb_intern(str) rb_intern_const(str) -#if defined(__FreeBSD__) && __FreeBSD__ < 4 - /* allow divide by zero -- Inf */ - fpsetmask(fpgetmask() & ~(FP_X_DZ|FP_X_INV|FP_X_OFL)); -#elif defined(_UNICOSMP) +#ifdef _UNICOSMP /* Turn off floating point exceptions for divide by zero, etc. */ _set_Creg(0, 0); #endif |