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__