# HG changeset patch # User Sebastien Jodogne # Date 1769529317 -3600 # Node ID dd7b19b63d562de6d2a634fc010efdefe339cceb # Parent 0d650504d32ca151b7ac8f2b7ae7e4f6d3509be3 replaced std::isnan() and !std::isfinite() by msvc primitives diff -r 0d650504d32c -r dd7b19b63d56 OrthancFramework/Sources/CompatibilityMath.h --- a/OrthancFramework/Sources/CompatibilityMath.h Tue Jan 27 16:14:41 2026 +0100 +++ b/OrthancFramework/Sources/CompatibilityMath.h Tue Jan 27 16:55:17 2026 +0100 @@ -55,7 +55,8 @@ * https://www.boost.org/doc/libs/1_89_0/boost/math/tools/config.hpp **/ -#include +#include // For _isnan() +#include // For _isnanf() #include namespace Orthanc @@ -95,8 +96,8 @@ bool RoundFloatWithChecks(T& target, float source) { - if (std::isnan(source) || - !std::isfinite(source)) + if (_isnanf(source) || + !_finitef(source)) { return false; } @@ -121,8 +122,8 @@ bool RoundDoubleWithChecks(T& target, double source) { - if (std::isnan(source) || - !std::isfinite(source)) + if (_isnan(source) || + !_finite(source)) { return false; }