2
0
mirror of https://github.com/boostorg/asio.git synced 2026-02-22 13:42:08 +00:00

Fix coroutine detection with recent Xcode.

This commit is contained in:
Christopher Kohlhoff
2022-12-07 22:10:58 +11:00
parent 3668ffb3c4
commit 926058f20f

View File

@@ -2095,7 +2095,11 @@
# if __has_include(<coroutine>)
# define BOOST_ASIO_HAS_CO_AWAIT 1
# endif // __has_include(<coroutine>)
# endif // (__cplusplus >= 202002) && (__cpp_impl_coroutine >= 201902)
# elif (__cplusplus >= 201703) && (__cpp_coroutines >= 201703)
# if __has_include(<experimental/coroutine>)
# define BOOST_ASIO_HAS_CO_AWAIT 1
# endif // __has_include(<experimental/coroutine>)
# endif // (__cplusplus >= 201703) && (__cpp_coroutines >= 201703)
# else // (__clang_major__ >= 14)
# if (__cplusplus >= 201703) && (__cpp_coroutines >= 201703)
# if __has_include(<experimental/coroutine>)