diff --git a/include/stdexec/__detail/__config.hpp b/include/stdexec/__detail/__config.hpp index 6ec941790..85004a489 100644 --- a/include/stdexec/__detail/__config.hpp +++ b/include/stdexec/__detail/__config.hpp @@ -418,7 +418,9 @@ namespace stdexec { # define STDEXEC_HAS_STD_MEMORY_RESOURCE() 0 #endif -#if STDEXEC_HAS_FEATURE(__cpp_lib_execution) +#if defined(__cpp_lib_execution) +# define STDEXEC_HAS_EXECUTION_POLICY() 0 +#elif STDEXEC_HAS_FEATURE(__cpp_lib_execution) # define STDEXEC_HAS_EXECUTION_POLICY() 1 #else # define STDEXEC_HAS_EXECUTION_POLICY() 0