Ticket #57751: patch-src_3rdparty_javascriptcore_JavaScriptCore_wtf_MathExtras_h

File patch-src_3rdparty_javascriptcore_JavaScriptCore_wtf_MathExtras_h, 561 bytes (added by devernay (Frédéric Devernay), 5 years ago)
Line 
1$OpenBSD$
2
3Don't define ::isfinite and ::signbit.  These conflict with
4std::isfinite and std::signbit in gcc 6, cause errors
5'call of overloaded... is ambigous'.
6
7Index: src/3rdparty/javascriptcore/JavaScriptCore/wtf/MathExtras.h
8--- src/3rdparty/javascriptcore/JavaScriptCore/wtf/MathExtras.h.orig
9+++ src/3rdparty/javascriptcore/JavaScriptCore/wtf/MathExtras.h
10@@ -85,7 +85,7 @@ inline bool signbit(double x) { return x < 0.0; } // F
11 
12 #endif
13 
14-#if OS(OPENBSD)
15+#if 0 && OS(OPENBSD)
16 
17 #ifndef isfinite
18 inline bool isfinite(double x) { return finite(x); }