diff options
author | Nikolas Klauser <nikolasklauser@berlin.de> | 2022-03-03 22:49:21 +0300 |
---|---|---|
committer | Nikolas Klauser <nikolasklauser@berlin.de> | 2022-03-05 21:01:49 +0300 |
commit | 9b03c08e8517ed2d95a91202744d07f7376848a9 (patch) | |
tree | 2d04dcf3d520db4b896df2f4e68a9e247d1b681e /libcxx | |
parent | 1d8093fe1eaff0b3d8cef6fb3ea02ce774de59ad (diff) |
[libc++] Don't warn that coroutines aren't supported when including <experimental/coroutine>
This change makes the behavior of `<experimental/coroutine>` consistent with other headers that only work conditionally.
Reviewed By: ldionne, #libc
Spies: Mordante, ChuanqiXu, libcxx-commits, arichardson
Differential Revision: https://reviews.llvm.org/D119964
Diffstat (limited to 'libcxx')
-rw-r--r-- | libcxx/include/experimental/coroutine | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/libcxx/include/experimental/coroutine b/libcxx/include/experimental/coroutine index 5a3a095ad104..837ab10766df 100644 --- a/libcxx/include/experimental/coroutine +++ b/libcxx/include/experimental/coroutine @@ -57,14 +57,6 @@ template <class P> struct hash<coroutine_handle<P>>; # pragma GCC system_header #endif -#ifdef _LIBCPP_HAS_NO_EXPERIMENTAL_COROUTINES -# if defined(_LIBCPP_WARNING) - _LIBCPP_WARNING("<experimental/coroutine> cannot be used with this compiler") -# else -# warning <experimental/coroutine> cannot be used with this compiler -# endif -#endif - #ifndef _LIBCPP_HAS_NO_EXPERIMENTAL_COROUTINES _LIBCPP_BEGIN_NAMESPACE_EXPERIMENTAL_COROUTINES |