Skip to content

Commit e63394b

Browse files
committed
[libc++] Avoid including <__config> directly in the test suite
Fixes llvm#105878
1 parent 1c48c9c commit e63394b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

libcxx/test/support/fp_compare.h

+4-3
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,17 @@
99
#ifndef SUPPORT_FP_COMPARE_H
1010
#define SUPPORT_FP_COMPARE_H
1111

12-
#include <cmath> // for std::abs
1312
#include <algorithm> // for std::max
1413
#include <cassert>
15-
#include <__config>
14+
#include <cmath> // for std::abs
15+
16+
#include "test_macros.h"
1617

1718
// See https://www.boost.org/doc/libs/1_70_0/libs/test/doc/html/boost_test/testing_tools/extended_comparison/floating_point/floating_points_comparison_theory.html
1819

1920
template <typename T>
2021
bool fptest_close(T val, T expected, T eps) {
21-
_LIBCPP_CONSTEXPR T zero = T(0);
22+
TEST_CONSTEXPR T zero = T(0);
2223
assert(eps >= zero);
2324

2425
// Handle the zero cases

0 commit comments

Comments
 (0)