-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9875 from neheb/mneas
measurement-kit: Fix compilation with uClibc-ng
- Loading branch information
Showing
2 changed files
with
19 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- a/include/private/catch.hpp | ||
+++ b/include/private/catch.hpp | ||
@@ -11095,7 +11095,11 @@ bool almostEqualUlps(FP lhs, FP rhs, int maxUlpDiff) { | ||
template <typename FP> | ||
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; | ||
} |