diff --git a/include/stdexec/__detail/__config.hpp b/include/stdexec/__detail/__config.hpp index d1584e308..9d6fb6d76 100644 --- a/include/stdexec/__detail/__config.hpp +++ b/include/stdexec/__detail/__config.hpp @@ -402,7 +402,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