Browse Source

Remove isnan() and isinf() templates from QGC.h for Windows builds

Remove isnan() and isinf() templates from QGC.h for Windows builds, this
generates errors (already defined in math.h).
QGC4.4
Kynos 11 years ago
parent
commit
37b02a3afb
  1. 16
      src/QGC.h

16
src/QGC.h

@ -33,22 +33,6 @@ @@ -33,22 +33,6 @@
/* Windows fixes */
#ifdef _MSC_VER
/* Needed define for Eigen */
//#define NOMINMAX
#include <limits>
template<typename T>
inline bool isnan(T value)
{
return value != value;
}
// requires #include <limits>
template<typename T>
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;
}
#elif defined __APPLE__
#include <cmath>
#ifndef isnan

Loading…
Cancel
Save