Skip to content

Commit 9872183

Browse files
committed
Added a feature test guard for <stop_token>, see also hsutter#16
1 parent 53b5821 commit 9872183

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

include/cpp2util.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,9 @@
174174
#include <semaphore>
175175
#endif
176176
#include <shared_mutex>
177-
#include <stop_token>
177+
#ifdef __cpp_lib_jthread
178+
#include <stop_token>
179+
#endif
178180
#include <thread>
179181
#include <iso646.h>
180182
#endif

0 commit comments

Comments
 (0)