Skip to content

Commit

Permalink
std-coroutine: include for LLVM-14
Browse files Browse the repository at this point in the history
since std::experimental::coroutine_traits will be removed in LLVM 15,
but are available in LLVM-14.

Update the check to prevent the warning for LLVM-14, as well..

This is a followup to 0a8eea3

Signed-off-by: Ben Pope <ben@redpanda.com>
  • Loading branch information
BenPope committed May 23, 2022
1 parent d69ffc6 commit 58a3912
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/seastar/core/std-coroutine.hh
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@

#pragma once

// Clang < 15 only supports the TS
#if __has_include(<coroutine>) && (!defined(__clang__) || __clang_major__ >= 15)
// Clang < 14 only supports the TS
#if __has_include(<coroutine>) && (!defined(__clang__) || __clang_major__ >= 14)
#include <coroutine>
#define SEASTAR_INTERNAL_COROUTINE_NAMESPACE std
#elif __has_include(<experimental/coroutine>)
Expand Down

0 comments on commit 58a3912

Please sign in to comment.