From 926058f20f5fce8ee55e5de52fca53dcfd079d93 Mon Sep 17 00:00:00 2001 From: Christopher Kohlhoff Date: Wed, 7 Dec 2022 22:10:58 +1100 Subject: [PATCH] Fix coroutine detection with recent Xcode. --- include/boost/asio/detail/config.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/boost/asio/detail/config.hpp b/include/boost/asio/detail/config.hpp index 28459e93..168793e4 100644 --- a/include/boost/asio/detail/config.hpp +++ b/include/boost/asio/detail/config.hpp @@ -2095,7 +2095,11 @@ # if __has_include() # define BOOST_ASIO_HAS_CO_AWAIT 1 # endif // __has_include() -# endif // (__cplusplus >= 202002) && (__cpp_impl_coroutine >= 201902) +# elif (__cplusplus >= 201703) && (__cpp_coroutines >= 201703) +# if __has_include() +# define BOOST_ASIO_HAS_CO_AWAIT 1 +# endif // __has_include() +# endif // (__cplusplus >= 201703) && (__cpp_coroutines >= 201703) # else // (__clang_major__ >= 14) # if (__cplusplus >= 201703) && (__cpp_coroutines >= 201703) # if __has_include()