From f7f304e971e05d5cae24edc6a0c93116588edd0b Mon Sep 17 00:00:00 2001 From: Piers Haken Date: Tue, 20 Dec 2022 15:04:05 -0800 Subject: [PATCH] fix clang coroutines detection --- include/continuable/detail/features.hpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/include/continuable/detail/features.hpp b/include/continuable/detail/features.hpp index a2c6c0a..8c98b48 100644 --- a/include/continuable/detail/features.hpp +++ b/include/continuable/detail/features.hpp @@ -108,10 +108,12 @@ #endif // defined(_RESUMABLE_FUNCTIONS_SUPPORTED) #endif // _MSC_FULL_VER >= 190023506 #elif defined(__clang__) // Clang - #if defined(__cpp_coroutines) && (__cpp_coroutines >= 201707) + #if defined(__cpp_coroutines) && (__cpp_coroutines >= 201703L) #define CONTINUABLE_HAS_COROUTINE 1 - #define CONTINUABLE_HAS_EXPERIMENTAL_COROUTINE 1 - #endif // defined(__cpp_coroutines) && (__cpp_coroutines >= 201707) + #if defined(_LIBCPP_EXPERIMENTAL_COROUTINE) + #define CONTINUABLE_HAS_EXPERIMENTAL_COROUTINE 1 + #endif + #endif // defined(__cpp_coroutines) && (__cpp_coroutines >= 201703L) #elif defined(__GNUC__) // GCC #if (__cplusplus >= 201709) && (__cpp_impl_coroutine >= 201902) #if __has_include()