From da696ae7949a8e0a7db12fefb2c68aff67b74654 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 12 May 2016 23:46:43 +0000 Subject: 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 --- numeric.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'numeric.c') diff --git a/numeric.c b/numeric.c index 574112faae..e2a14b2d06 100644 --- a/numeric.c +++ b/numeric.c @@ -16,10 +16,6 @@ #include #include -#if defined(__FreeBSD__) && __FreeBSD__ < 4 -#include -#endif - #ifdef HAVE_FLOAT_H #include #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 -- cgit v1.2.3