From f2e06804c53fdde3527a295287cb452c9657c771 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Thu, 10 Apr 2014 10:49:55 -0700 Subject: [PATCH] Workaround an issue with Intel C++ compiler. --- format.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/format.cc b/format.cc index 090e3f4d..08a30d6a 100644 --- a/format.cc +++ b/format.cc @@ -51,8 +51,11 @@ namespace { inline int SignBit(double value) { // When compiled in C++11 mode signbit is no longer a macro but a function // defined in namespace std and the macro is undefined. - using namespace std; +#ifdef signbit return signbit(value); +#else + return std::signbit(value); +#endif } inline int IsInf(double x) {