https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53769
--- Comment #14 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Sergey Fedorov from comment #13) > Apparently `__STDC_NO_THREADS__` is still not being defined? Because you're on macOS. This was fixed for GNU/Linux by defining it in glibc's std-predef.h but you're not using glibc.