Skip to content

Commit

Permalink
Merge pull request #370 from BillyONeal/fix-c-atomics-detection
Browse files Browse the repository at this point in the history
Add <stdatomic.h> check to JAS_TRY_COMPILE_C11_THREADS
  • Loading branch information
mdadams authored Jan 16, 2024
2 parents b867d1a + d06437f commit ec76987
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -592,6 +592,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;
Expand Down

0 comments on commit ec76987

Please sign in to comment.