Skip to content

Commit 8f9bd0c

Browse files
authored
Switch _LIBCPP_STD_VER to __cplusplus. NFC (#20618)
1 parent 0e48859 commit 8f9bd0c

File tree

1 file changed

+5
-5
lines changed
  • system/include/emscripten

1 file changed

+5
-5
lines changed

system/include/emscripten/val.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#include <cstdint> // uintptr_t
1919
#include <vector>
2020
#include <type_traits>
21-
#if _LIBCPP_STD_VER >= 20
21+
#if __cplusplus >= 202002L
2222
#include <coroutine>
2323
#include <variant>
2424
#endif
@@ -114,7 +114,7 @@ EM_VAL _emval_await(EM_VAL promise);
114114
EM_VAL _emval_iter_begin(EM_VAL iterable);
115115
EM_VAL _emval_iter_next(EM_VAL iterator);
116116

117-
#if _LIBCPP_STD_VER >= 20
117+
#if __cplusplus >= 202002L
118118
void _emval_coro_suspend(EM_VAL promise, void* coro_ptr);
119119
EM_VAL _emval_coro_make_promise(EM_VAL *resolve, EM_VAL *reject);
120120
#endif
@@ -301,7 +301,7 @@ class val {
301301

302302
template<typename Iter>
303303
static val array(Iter begin, Iter end) {
304-
#if _LIBCPP_STD_VER >= 20
304+
#if __cplusplus >= 202002L
305305
if constexpr (std::contiguous_iterator<Iter> &&
306306
internal::typeSupportsMemoryView<
307307
typename std::iterator_traits<Iter>::value_type>()) {
@@ -595,7 +595,7 @@ class val {
595595
// our iterators are sentinel-based range iterators; use nullptr as the end sentinel
596596
constexpr nullptr_t end() const { return nullptr; }
597597

598-
#if _LIBCPP_STD_VER >= 20
598+
#if __cplusplus >= 202002L
599599
struct promise_type;
600600
#endif
601601

@@ -659,7 +659,7 @@ inline val::iterator val::begin() const {
659659
return iterator(*this);
660660
}
661661

662-
#if _LIBCPP_STD_VER >= 20
662+
#if __cplusplus >= 202002L
663663
namespace internal {
664664
// Awaiter defines a set of well-known methods that compiler uses
665665
// to drive the argument of the `co_await` operator (regardless

0 commit comments

Comments
 (0)