Skip to content

Commit a71f523

Browse files
committed
Fix coroutine detection with recent Xcode.
1 parent c7d0d4d commit a71f523

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

asio/include/asio/detail/config.hpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2122,7 +2122,11 @@
21222122
# if __has_include(<coroutine>)
21232123
# define ASIO_HAS_CO_AWAIT 1
21242124
# endif // __has_include(<coroutine>)
2125-
# endif // (__cplusplus >= 202002) && (__cpp_impl_coroutine >= 201902)
2125+
# elif (__cplusplus >= 201703) && (__cpp_coroutines >= 201703)
2126+
# if __has_include(<experimental/coroutine>)
2127+
# define ASIO_HAS_CO_AWAIT 1
2128+
# endif // __has_include(<experimental/coroutine>)
2129+
# endif // (__cplusplus >= 201703) && (__cpp_coroutines >= 201703)
21262130
# else // (__clang_major__ >= 14)
21272131
# if (__cplusplus >= 201703) && (__cpp_coroutines >= 201703)
21282132
# if __has_include(<experimental/coroutine>)

0 commit comments

Comments
 (0)