[libc++] Use __has_include instead of complex logic in thread.cpp
authorLouis Dionne <ldionne@apple.com>
Mon, 5 Oct 2020 20:39:33 +0000 (16:39 -0400)
committerLouis Dionne <ldionne@apple.com>
Mon, 5 Oct 2020 20:41:25 +0000 (16:41 -0400)
commit477a68760b24f07a45253fb41e89368328b3a4a8
treee3cd8d50e13a499ace5b92d682f349351f9d3b38
parentfe7245b772d5bca4a5f6cc055b18c45cc8b46902
[libc++] Use __has_include instead of complex logic in thread.cpp

We might end up including more headers than strictly necessary this way,
but it's much simpler and it makes it easier to port thread.cpp to systems
not handled by the existing conditionals.
libcxx/src/thread.cpp