diff --git a/async_simple/coro/Generator.h b/async_simple/coro/Generator.h index 21096efc..25b704bb 100644 --- a/async_simple/coro/Generator.h +++ b/async_simple/coro/Generator.h @@ -22,14 +22,14 @@ #warning "Clang 15 is not supported for Generator due to some issues." #endif -#if __has_include() +#if defined(__cpp_lib_generator) && __has_include() #include namespace async_simple::coro { template -using Generator = std::generator; +using Generator = std::generator; } // namespace async_simple::coro