@@ -1012,7 +1012,7 @@ c_cpp_builtins (cpp_reader *pfile)
cpp_define (pfile, "__cpp_concepts=201507L");
}
if (flag_coroutines)
- cpp_define (pfile, "__cpp_coroutines=201902L"); /* n4835, C++20 CD */
+ cpp_define (pfile, "__cpp_impl_coroutine=201902L"); /* n4861, DIS */
if (flag_tm)
/* Use a value smaller than the 201505 specified in
the TS, since we don't yet support atomic_cancel. */
@@ -1,9 +1,9 @@
// Only need to compile this, with the default options from the .exp.
-#ifndef __cpp_coroutines
+#ifndef __cpp_impl_coroutine
#error "coroutines should engaged."
#endif
-#if __cpp_coroutines != 201902L
+#if __cpp_impl_coroutine != 201902L
#error "coroutine version out of sync."
#endif
@@ -29,7 +29,7 @@ namespace coro = std::experimental;
// Fragments (with short-cuts) to mimic enough of the library header to
// make some progress.
-# if __cpp_coroutines
+# if __cpp_impl_coroutine
namespace std {
inline namespace __n4835 {
@@ -54,7 +54,7 @@ namespace std _GLIBCXX_VISIBILITY (default)
{
_GLIBCXX_BEGIN_NAMESPACE_VERSION
-#if __cpp_coroutines
+#if __cpp_impl_coroutine
inline namespace __n4835 {
// 17.12.2 coroutine traits