diff --git a/include/internal/catch_matchers_floating.cpp b/include/internal/catch_matchers_floating.cpp index d001b751cb..a7842f500b 100644 --- a/include/internal/catch_matchers_floating.cpp +++ b/include/internal/catch_matchers_floating.cpp @@ -80,7 +80,11 @@ bool almostEqualUlps(FP lhs, FP rhs, int maxUlpDiff) { template FP step(FP start, FP direction, int steps) { for (int i = 0; i < steps; ++i) { +#ifndef __UCLIBC__ start = std::nextafter(start, direction); +#else + start = ::nextafterf(start, direction); +#endif } return start; }