diff --git a/src/tests/system/libroot/posix/math/math_test.cpp b/src/tests/system/libroot/posix/math/math_test.cpp index cb5e5de188..5d9d8ee092 100644 --- a/src/tests/system/libroot/posix/math/math_test.cpp +++ b/src/tests/system/libroot/posix/math/math_test.cpp @@ -95,7 +95,7 @@ main(int argc, char **argv) double g = (double)j/4.0; double x = copysign(f, g); double y = be_copysign(f, g); - if ((x != y) && !(isnan(x) && isnan(y))) { + if ((x != y) && !(std::isnan(x) && std::isnan(y))) { fprintf(stdout, "%0.1f\t%0.1f\t%0.6f\t%0.6f", f, g, x, y); fprintf(stdout, " **"); fprintf(stdout, "\n"); @@ -113,7 +113,7 @@ main(int argc, char **argv) double g = (double)j/4.0; double x = drem(f, g); double y = be_drem(f, g); - if ((x != y) && !(isnan(x) && isnan(y))) { + if ((x != y) && !(std::isnan(x) && std::isnan(y))) { fprintf(stdout, "%0.2f\t%0.2f\t%0.10f\t%0.10f", f, g, x, y); fprintf(stdout, " **"); fprintf(stdout, "\n");