vcpkg/ports/jasper/check-for-atomics-support.patch
2024-01-16 19:51:14 -08:00

13 lines
335 B
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8d2e9f9..110c245 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -591,6 +591,7 @@ set(JAS_HAVE_WIN32_THREADS FALSE)
if(JAS_ENABLE_MULTITHREADING_SUPPORT)
check_c_source_compiles("
#include <threads.h>
+ #include <stdatomic.h>
int main() {
thrd_t thread;
mtx_t mutex;