Skip to content

Commit c276104

Browse files
committed
fix std::max not available: undef macros
1 parent 36a162b commit c276104

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libcxx/include/__math/hypot.h

+4
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424
# pragma GCC system_header
2525
#endif
2626

27+
_LIBCPP_PUSH_MACROS
28+
#include <__undef_macros>
29+
2730
_LIBCPP_BEGIN_NAMESPACE_STD
2831

2932
namespace __math {
@@ -121,5 +124,6 @@ _LIBCPP_HIDE_FROM_ABI typename __promote<_A1, _A2, _A3>::type hypot(_A1 __x, _A2
121124
} // namespace __math
122125

123126
_LIBCPP_END_NAMESPACE_STD
127+
_LIBCPP_POP_MACROS
124128

125129
#endif // _LIBCPP___MATH_HYPOT_H

0 commit comments

Comments
 (0)