diff --git a/strings/base_coroutine_foundation.h b/strings/base_coroutine_foundation.h index 943e640ed..d7e325b9e 100644 --- a/strings/base_coroutine_foundation.h +++ b/strings/base_coroutine_foundation.h @@ -127,6 +127,7 @@ namespace winrt::impl } }; +#ifdef WINRT_IMPL_COROUTINES template struct await_adapter : enable_await_cancellation { @@ -177,6 +178,7 @@ namespace winrt::impl } } }; +#endif template auto consume_Windows_Foundation_IAsyncAction::get() const @@ -793,6 +795,7 @@ namespace std::experimental WINRT_EXPORT namespace winrt { +#ifdef WINRT_IMPL_COROUTINES template Windows::Foundation::IAsyncAction when_all(T... async) { @@ -838,4 +841,5 @@ WINRT_EXPORT namespace winrt impl::check_status_canceled(shared->status); co_return shared->result.GetResults(); } +#endif }