Skip to content

Commit

Permalink
Fix for missing finite function
Browse files Browse the repository at this point in the history
* causing trouble on macosx local/github builds
  • Loading branch information
jefferis committed Aug 9, 2024
1 parent c7a9f80 commit 32bed45
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/cmtkconfig.h.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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 <math.h>
inline int finite( const double x ) { return isfinite(x); }
#endif // #ifndefHAVE_FINITE

#endif //#ifdef _MSC_VER

#endif // #ifndef __cmtkconfig_h_included__

0 comments on commit 32bed45

Please sign in to comment.