Darwin: Define __STDC_NO_THREADS__ on Darwin targets
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Thu, 27 Apr 2017 01:47:22 +0000 (01:47 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Thu, 27 Apr 2017 01:47:22 +0000 (01:47 +0000)
commit16b1ac950b5fb796e4c126ce451d34d3ceefe155
tree421bc785d8b86b7b51c7660ef902b0f4112b784d
parent8c8fb8049080bb3522c3cd8349b1d2f79c54531e
Darwin: Define __STDC_NO_THREADS__ on Darwin targets

Darwin doesn't support C11 threads.h.  Define `__STDC_NO_THREADS__` so
that users can check for it.

rdar://problem/18461003

llvm-svn: 301508
clang/lib/Basic/Targets.cpp
clang/test/Preprocessor/init.c