From: commit-queue@webkit.org Date: Thu, 26 Feb 2015 15:21:13 +0000 (+0000) Subject: Revert bug 19975, now that gcc 4.7 is required. X-Git-Url: http://git.webkit.org/?p=WebKit-https.git;a=commitdiff_plain;h=320c4d49dee7f1497b5d6ebea7ed8a72efaf2b5c Revert bug 19975, now that gcc 4.7 is required. https://bugs.webkit.org/show_bug.cgi?id=129927 Patch by Landry Breuil on 2015-02-26 Reviewed by Andreas Kling. isfinite() and signbit() are provided by gcc's cmath header. * wtf/MathExtras.h: git-svn-id: https://svn.webkit.org/repository/webkit/trunk@180674 268f45cc-cd09-0410-ab3c-d52691b4dbfc --- diff --git a/Source/WTF/ChangeLog b/Source/WTF/ChangeLog index 90c242c..6264c17 100644 --- a/Source/WTF/ChangeLog +++ b/Source/WTF/ChangeLog @@ -1,3 +1,14 @@ +2015-02-26 Landry Breuil + + Revert bug 19975, now that gcc 4.7 is required. + https://bugs.webkit.org/show_bug.cgi?id=129927 + + Reviewed by Andreas Kling. + + isfinite() and signbit() are provided by gcc's cmath header. + + * wtf/MathExtras.h: + 2015-02-26 Csaba Osztrogonác UNREACHABLE_FOR_PLATFORM() should be release assert diff --git a/Source/WTF/wtf/MathExtras.h b/Source/WTF/wtf/MathExtras.h index 8a37fc7..04b7355 100644 --- a/Source/WTF/wtf/MathExtras.h +++ b/Source/WTF/wtf/MathExtras.h @@ -102,21 +102,6 @@ inline bool isinf(double x) { return !finite(x) && !isnand(x); } #endif -#if OS(OPENBSD) - -namespace std { - -#ifndef isfinite -inline bool isfinite(double x) { return finite(x); } -#endif -#ifndef signbit -inline bool signbit(double x) { struct ieee_double *p = (struct ieee_double *)&x; return p->dbl_sign; } -#endif - -} // namespace std - -#endif - #if COMPILER(MSVC) // Work around a bug in Win, where atan2(+-infinity, +-infinity) yields NaN instead of specific values.