From 32bed45cdc43ec4947c0200a5b3c7ace1f90b340 Mon Sep 17 00:00:00 2001 From: Gregory Jefferis Date: Thu, 8 Aug 2024 10:43:51 +0100 Subject: [PATCH] Fix for missing finite function * causing trouble on macosx local/github builds --- core/cmtkconfig.h.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/cmtkconfig.h.cmake b/core/cmtkconfig.h.cmake index b8426d24..ffd02d82 100644 --- a/core/cmtkconfig.h.cmake +++ b/core/cmtkconfig.h.cmake @@ -189,6 +189,11 @@ inline int finite( const double x ) { return _finite(x); } # define CMTK_PATH_SEPARATOR '/' # define CMTK_PATH_SEPARATOR_STR "/" +#ifndef HAVE_FINITE +#include +inline int finite( const double x ) { return isfinite(x); } +#endif // #ifndefHAVE_FINITE + #endif //#ifdef _MSC_VER #endif // #ifndef __cmtkconfig_h_included__