Commit 7c6397de authored by Don Gagne's avatar Don Gagne

Merge pull request #3053 from tcanabrava/fix_compilation

Fix compilation on some linux boxes
parents f26ea03c 841cbde5
......@@ -51,7 +51,7 @@ inline bool isinf(T value)
return (value == std::numeric_limits<T>::infinity() || (-1 * value) == std::numeric_limits<T>::infinity()) && std::numeric_limits<T>::has_infinity;
}
#endif
#elif defined __APPLE__
#elif defined __APPLE__ || defined Q_OS_LINUX
#include <cmath>
#ifndef isnan
#define isnan(x) std::isnan(x)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment