| commit | f2e06804c53fdde3527a295287cb452c9657c771 | [log] [tgz] |
|---|---|---|
| author | Victor Zverovich <victor.zverovich@gmail.com> | Thu Apr 10 10:49:55 2014 -0700 |
| committer | Victor Zverovich <victor.zverovich@gmail.com> | Thu Apr 10 10:49:55 2014 -0700 |
| tree | 2b1deb61398ead4198d29d61e67fcdbc613bedd2 | |
| parent | 648dba0a78f9e1afea741f841ab9dbe7bcc9fe65 [diff] [blame] |
Workaround an issue with Intel C++ compiler.
diff --git a/format.cc b/format.cc index 090e3f4..08a30d6 100644 --- a/format.cc +++ b/format.cc
@@ -51,8 +51,11 @@ 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) {