Commit 841cbde5 authored by Tomaz Canabrava's avatar Tomaz Canabrava

Fix compilation on some linux boxes

This shouldn't break a thing on other linux boxes that compiles
fine.
Signed-off-by: 's avatarTomaz Canabrava <tomaz.canabrava@intel.com>
parent 86eec3f4
......@@ -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