build: Fix building issues on macOS with clang 18

This commit is contained in:
WerWolv
2024-09-08 10:45:38 +02:00
parent 87db9def32
commit 871a0d535c
2 changed files with 10 additions and 0 deletions

View File

@@ -3,5 +3,9 @@
#if __cpp_lib_jthread >= 201911L
#include <thread>
#else
#define __stop_callback_base __stop_callback_base_j
#define __stop_state __stop_state_j
#include "../jthread/source/jthread.hpp"
#undef __stop_callback_base
#undef __stop_state
#endif