(MSVC 17.8 supports C atomics but it's behind a bunch of 'enable experimental things' switches right now, so including <stdatomic.h> without checking STDC_NO_ATOMICS fails like this)
Thanks to Charlie Barto and Casey Carter for helping me debug this.
In https://github.com/jasper-software/jasper/blob/b867d1adb2e6423c260407338bdc8d698330764e/src/libjasper/include/jasper/jas_thread.h#L87-L89 ,
JAS_THREADS_C11
assumes that both<threads.h>
and<stdatomic.h>
are available, but here,<stdatomic.h>
is not checked. This causes builds with MSVC to fail with spew like:(MSVC 17.8 supports C atomics but it's behind a bunch of 'enable experimental things' switches right now, so including
<stdatomic.h>
without checkingSTDC_NO_ATOMICS
fails like this)Thanks to Charlie Barto and Casey Carter for helping me debug this.