Skip to content

Commit

Permalink
[libc++] Remove C++ version guards in the dylib.
Browse files Browse the repository at this point in the history
The library is always build using C++20 so these guards are not needed.

Reviewed By: #libc, Quuxplusone, ldionne

Differential Revision: https://reviews.llvm.org/D115644
  • Loading branch information
mordante committed Dec 14, 2021
1 parent ef244ad commit 0b9b1c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 2 additions & 2 deletions libcxx/src/barrier.cpp
Expand Up @@ -15,7 +15,7 @@

_LIBCPP_BEGIN_NAMESPACE_STD

#if !defined(_LIBCPP_HAS_NO_TREE_BARRIER) && (_LIBCPP_STD_VER > 11)
#if !defined(_LIBCPP_HAS_NO_TREE_BARRIER)

class __barrier_algorithm_base {
public:
Expand Down Expand Up @@ -90,7 +90,7 @@ void __destroy_barrier_algorithm_base(__barrier_algorithm_base* __barrier)
delete __barrier;
}

#endif //!defined(_LIBCPP_HAS_NO_TREE_BARRIER) && (_LIBCPP_STD_VER >= 11)
#endif //!defined(_LIBCPP_HAS_NO_TREE_BARRIER)

_LIBCPP_END_NAMESPACE_STD

Expand Down
4 changes: 0 additions & 4 deletions libcxx/src/format.cpp
Expand Up @@ -10,10 +10,6 @@

_LIBCPP_BEGIN_NAMESPACE_STD

#if _LIBCPP_STD_VER > 17

format_error::~format_error() noexcept = default;

#endif //_LIBCPP_STD_VER > 17

_LIBCPP_END_NAMESPACE_STD

0 comments on commit 0b9b1c8

Please sign in to comment.