From d2882a88f358817bfab1ee4c215ee94fe54cd15c Mon Sep 17 00:00:00 2001 From: matlabbe Date: Tue, 3 May 2016 20:44:06 -0400 Subject: [PATCH] fixed isnan() not defined --- utilite/include/rtabmap/utilite/UMath.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/utilite/include/rtabmap/utilite/UMath.h b/utilite/include/rtabmap/utilite/UMath.h index f4c21e36..bd036322 100644 --- a/utilite/include/rtabmap/utilite/UMath.h +++ b/utilite/include/rtabmap/utilite/UMath.h @@ -41,12 +41,10 @@ template inline bool uIsNan(const T & value) { -#ifdef __APPLE__ - return std::isnan(value); -#elif _MSC_VER +#if _MSC_VER return _isnan(value) != 0; #else - return isnan(value); + return std::isnan(value); #endif }