Skip to content

Commit

Permalink
Workaround an issue with Intel C++ compiler.
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaut committed Apr 10, 2014
1 parent 648dba0 commit f2e0680
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion format.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit f2e0680

Please sign in to comment.