Skip to content

Commit

Permalink
include independent of C++ standard version
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulXiCao committed Jul 27, 2024
1 parent 0ff240d commit 7b21cd1
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions libcxx/include/__math/hypot.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 <limits>
#endif
#include <__utility/pair.h>
#include <limits>

#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
# pragma GCC system_header
Expand Down

0 comments on commit 7b21cd1

Please sign in to comment.