[libc++] Remove _LIBCPP_HAS_NO_CXX20_COROUTINES
As far as I can tell, all the compilers we support have support for C++20 coroutines now. Differential Revision: https://reviews.llvm.org/D135274
This commit is contained in:
parent
1d29657acb
commit
3fe2db8cf9
|
@ -1080,10 +1080,6 @@ _LIBCPP_BEGIN_NAMESPACE_STD _LIBCPP_END_NAMESPACE_STD
|
|||
# define _LIBCPP_ENABLE_CXX20_REMOVED_TYPE_TRAITS
|
||||
# endif // _LIBCPP_ENABLE_CXX20_REMOVED_FEATURES
|
||||
|
||||
# if !defined(__cpp_impl_coroutine) || __cpp_impl_coroutine < 201902L
|
||||
# define _LIBCPP_HAS_NO_CXX20_COROUTINES
|
||||
# endif
|
||||
|
||||
# define _LIBCPP_PUSH_MACROS _Pragma("push_macro(\"min\")") _Pragma("push_macro(\"max\")")
|
||||
# define _LIBCPP_POP_MACROS _Pragma("pop_macro(\"min\")") _Pragma("pop_macro(\"max\")")
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
# pragma GCC system_header
|
||||
#endif
|
||||
|
||||
#if _LIBCPP_STD_VER > 17 && !defined(_LIBCPP_HAS_NO_CXX20_COROUTINES)
|
||||
#if _LIBCPP_STD_VER > 17
|
||||
|
||||
_LIBCPP_BEGIN_NAMESPACE_STD
|
||||
|
||||
|
@ -197,6 +197,6 @@ struct hash<coroutine_handle<_Tp>> {
|
|||
|
||||
_LIBCPP_END_NAMESPACE_STD
|
||||
|
||||
#endif // __LIBCPP_STD_VER > 17 && !defined(_LIBCPP_HAS_NO_CXX20_COROUTINES)
|
||||
#endif // __LIBCPP_STD_VER > 17
|
||||
|
||||
#endif // _LIBCPP___COROUTINE_COROUTINE_HANDLE_H
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
# pragma GCC system_header
|
||||
#endif
|
||||
|
||||
#if _LIBCPP_STD_VER > 17 && !defined(_LIBCPP_HAS_NO_CXX20_COROUTINES)
|
||||
#if _LIBCPP_STD_VER > 17
|
||||
|
||||
_LIBCPP_BEGIN_NAMESPACE_STD
|
||||
|
||||
|
@ -48,6 +48,6 @@ struct coroutine_traits
|
|||
|
||||
_LIBCPP_END_NAMESPACE_STD
|
||||
|
||||
#endif // __LIBCPP_STD_VER > 17 && !defined(_LIBCPP_HAS_NO_CXX20_COROUTINES)
|
||||
#endif // __LIBCPP_STD_VER > 17
|
||||
|
||||
#endif // _LIBCPP___COROUTINE_COROUTINE_TRAITS_H
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
# pragma GCC system_header
|
||||
#endif
|
||||
|
||||
#if _LIBCPP_STD_VER > 17 && !defined(_LIBCPP_HAS_NO_CXX20_COROUTINES)
|
||||
#if _LIBCPP_STD_VER > 17
|
||||
|
||||
_LIBCPP_BEGIN_NAMESPACE_STD
|
||||
|
||||
|
@ -107,6 +107,6 @@ noop_coroutine_handle noop_coroutine() noexcept { return noop_coroutine_handle()
|
|||
|
||||
_LIBCPP_END_NAMESPACE_STD
|
||||
|
||||
#endif // __LIBCPP_STD_VER > 17 && !defined(_LIBCPP_HAS_NO_CXX20_COROUTINES)
|
||||
#endif // __LIBCPP_STD_VER > 17
|
||||
|
||||
#endif // _LIBCPP___COROUTINE_NOOP_COROUTINE_HANDLE_H
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
# pragma GCC system_header
|
||||
#endif
|
||||
|
||||
#if _LIBCPP_STD_VER > 17 && !defined(_LIBCPP_HAS_NO_CXX20_COROUTINES)
|
||||
#if _LIBCPP_STD_VER > 17
|
||||
|
||||
_LIBCPP_BEGIN_NAMESPACE_STD
|
||||
|
||||
|
@ -41,6 +41,6 @@ struct suspend_always {
|
|||
|
||||
_LIBCPP_END_NAMESPACE_STD
|
||||
|
||||
#endif // __LIBCPP_STD_VER > 17 && !defined(_LIBCPP_HAS_NO_CXX20_COROUTINES)
|
||||
#endif // __LIBCPP_STD_VER > 17
|
||||
|
||||
#endif // __LIBCPP___COROUTINE_TRIVIAL_AWAITABLES_H
|
||||
|
|
Loading…
Reference in New Issue