From f293b707d56be264b6d688fd159e5b6306092491 Mon Sep 17 00:00:00 2001 From: Ralf Nolden Date: Fri, 1 Jul 2016 16:34:21 +0200 Subject: Compile Fix for OpenBSD in C++11 mode Add a __cplusplus condition to an already existing OpenBSD defined part to activate the code only on older gcc compilers. Change-Id: I3ae3c4f792af12868e5efe1c3536f9743de78ce3 Reviewed-by: Konstantin Tokarev Reviewed-by: Thiago Macieira --- Source/WTF/wtf/MathExtras.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/WTF/wtf/MathExtras.h b/Source/WTF/wtf/MathExtras.h index 859722386..d3def9a54 100644 --- a/Source/WTF/wtf/MathExtras.h +++ b/Source/WTF/wtf/MathExtras.h @@ -106,7 +106,7 @@ inline bool isinf(double x) { return !finite(x) && !isnand(x); } #endif -#if OS(OPENBSD) +#if OS(OPENBSD) && __cplusplus < 201103L namespace std { -- cgit v1.2.3