Skip to content

Commit

Permalink
Merge pull request #9 from jefferis/fix/finite
Browse files Browse the repository at this point in the history
  • Loading branch information
jefferis authored Aug 9, 2024
2 parents c7a9f80 + 32bed45 commit ec9325b
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 ec9325b

Please sign in to comment.