diff --git a/googletest/src/gtest.cc b/googletest/src/gtest.cc index 293cc039..b5bc3539 100644 --- a/googletest/src/gtest.cc +++ b/googletest/src/gtest.cc @@ -35,7 +35,6 @@ #include "gtest/gtest-spi.h" #include -#include #include #include #include @@ -45,6 +44,7 @@ #include #include // NOLINT +#include #include #include #include @@ -1527,7 +1527,8 @@ AssertionResult DoubleNearPredFormat(const char* expr1, // requiring exotic floating-point knowledge. // Don't do an epsilon check if abs_error is zero because that implies // that an equality check was actually intended. - if (!isnan(val1) && !isnan(val2) && abs_error > 0 && abs_error < epsilon) { + if (!(std::isnan)(val1) && !(std::isnan)(val2) && abs_error > 0 && + abs_error < epsilon) { return AssertionFailure() << "The difference between " << expr1 << " and " << expr2 << " is " << diff << ", where\n"