|
18 | 18 | #include <cstdint> // uintptr_t
|
19 | 19 | #include <vector>
|
20 | 20 | #include <type_traits>
|
21 |
| -#if _LIBCPP_STD_VER >= 20 |
| 21 | +#if __cplusplus >= 202002L |
22 | 22 | #include <coroutine>
|
23 | 23 | #include <variant>
|
24 | 24 | #endif
|
@@ -114,7 +114,7 @@ EM_VAL _emval_await(EM_VAL promise);
|
114 | 114 | EM_VAL _emval_iter_begin(EM_VAL iterable);
|
115 | 115 | EM_VAL _emval_iter_next(EM_VAL iterator);
|
116 | 116 |
|
117 |
| -#if _LIBCPP_STD_VER >= 20 |
| 117 | +#if __cplusplus >= 202002L |
118 | 118 | void _emval_coro_suspend(EM_VAL promise, void* coro_ptr);
|
119 | 119 | EM_VAL _emval_coro_make_promise(EM_VAL *resolve, EM_VAL *reject);
|
120 | 120 | #endif
|
@@ -301,7 +301,7 @@ class val {
|
301 | 301 |
|
302 | 302 | template<typename Iter>
|
303 | 303 | static val array(Iter begin, Iter end) {
|
304 |
| -#if _LIBCPP_STD_VER >= 20 |
| 304 | +#if __cplusplus >= 202002L |
305 | 305 | if constexpr (std::contiguous_iterator<Iter> &&
|
306 | 306 | internal::typeSupportsMemoryView<
|
307 | 307 | typename std::iterator_traits<Iter>::value_type>()) {
|
@@ -595,7 +595,7 @@ class val {
|
595 | 595 | // our iterators are sentinel-based range iterators; use nullptr as the end sentinel
|
596 | 596 | constexpr nullptr_t end() const { return nullptr; }
|
597 | 597 |
|
598 |
| -#if _LIBCPP_STD_VER >= 20 |
| 598 | +#if __cplusplus >= 202002L |
599 | 599 | struct promise_type;
|
600 | 600 | #endif
|
601 | 601 |
|
@@ -659,7 +659,7 @@ inline val::iterator val::begin() const {
|
659 | 659 | return iterator(*this);
|
660 | 660 | }
|
661 | 661 |
|
662 |
| -#if _LIBCPP_STD_VER >= 20 |
| 662 | +#if __cplusplus >= 202002L |
663 | 663 | namespace internal {
|
664 | 664 | // Awaiter defines a set of well-known methods that compiler uses
|
665 | 665 | // to drive the argument of the `co_await` operator (regardless
|
|
0 commit comments