mirror of
https://github.com/fmtlib/fmt.git
synced 2025-01-11 21:38:05 +00:00
Workaround an issue with Intel C++ compiler.
This commit is contained in:
parent
648dba0a78
commit
f2e06804c5
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user