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()