--- src/diffusion.cpp 2023-12-11 23:53:04.000000000 +0800 +++ src/diffusion.cpp 2024-01-20 03:07:04.000000000 +0800 @@ -109,7 +109,7 @@ } if (err - ans > errziel) { // MONITOR(1, 5)++; - err = (isfinite(ans)) ? errziel * (1 + zahl * 0.1) + ans : 2 * err; + err = (std::isfinite(ans)) ? errziel * (1 + zahl * 0.1) + ans : 2 * err; goto NEW; } return ans; --- src/onetimes.cpp 2023-12-11 23:53:04.000000000 +0800 +++ src/onetimes.cpp 2024-01-20 03:10:35.000000000 +0800 @@ -525,7 +525,7 @@ loglik += 2 * icdjs * xsi; } - if (!isfinite(loglik)) { restart = true; loglik = -1.0e10; } + if (!std::isfinite(loglik)) { restart = true; loglik = -1.0e10; } else restart = false; pars->restart = restart; free(x); --- src/rwiener.cpp 2023-12-11 23:53:04.000000000 +0800 +++ src/rwiener.cpp 2024-01-20 03:16:07.000000000 +0800 @@ -159,7 +159,7 @@ double sl = upper[j].slope; double help = log(fabs(sl)); int sign = sl > 0 ? 1 : -1; - if (isnan(sl)) { + if (std::isnan(sl)) { flag = true; }