Commit 88921e7d authored by Lorenz Meier's avatar Lorenz Meier

Linux compile fix

parent a0f71c30
...@@ -49,7 +49,7 @@ inline bool isinf(T value) ...@@ -49,7 +49,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; return (value == std::numeric_limits<T>::infinity() || (-1*value) == std::numeric_limits<T>::infinity()) && std::numeric_limits<T>::has_infinity;
} }
#else #elif defined __APPLE__
#include <cmath> #include <cmath>
#ifndef isnan #ifndef isnan
#define isnan(x) std::isnan(x) #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