From 7b21cd1ff0c688f0ca95b0f47396324212c69ce4 Mon Sep 17 00:00:00 2001 From: Paul Date: Sat, 27 Jul 2024 18:58:18 +0200 Subject: [PATCH] include independent of C++ standard version --- libcxx/include/__math/hypot.h | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/libcxx/include/__math/hypot.h b/libcxx/include/__math/hypot.h index 8819e7e9ad5d0d..b992163711010a 100644 --- a/libcxx/include/__math/hypot.h +++ b/libcxx/include/__math/hypot.h @@ -9,20 +9,17 @@ #ifndef _LIBCPP___MATH_HYPOT_H #define _LIBCPP___MATH_HYPOT_H +#include <__algorithm/max.h> #include <__config> +#include <__math/abs.h> +#include <__math/exponential_functions.h> +#include <__math/roots.h> #include <__type_traits/enable_if.h> #include <__type_traits/is_arithmetic.h> #include <__type_traits/is_same.h> #include <__type_traits/promote.h> - -#if _LIBCPP_STD_VER >= 17 -# include <__algorithm/max.h> -# include <__math/abs.h> -# include <__math/exponential_functions.h> -# include <__math/roots.h> -# include <__utility/pair.h> -# include -#endif +#include <__utility/pair.h> +#include #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header