Skip to content

Commit

Permalink
[ci] Fix a jthread bug with clang 18
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Apr 4, 2024
1 parent 64f3256 commit 1c1e3da
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ossia/detail/jthread.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#pragma once
#include <version>

#if __has_include(<stop_token>)
#if __cpp_lib_jthread >= 201911L
#define OSSIA_HAS_STD_JTHREAD 1

Expand All @@ -11,6 +12,7 @@
#define OSSIA_HAS_STD_JTHREAD 1
#endif
#endif
#endif

#if OSSIA_HAS_STD_JTHREAD
#include <stop_token>
Expand Down

0 comments on commit 1c1e3da

Please sign in to comment.