We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c01fd7e + d30e196 commit 7972139Copy full SHA for 7972139
stdlib/public/Concurrency/Actor.cpp
@@ -36,9 +36,7 @@
36
#include "swift/ABI/Task.h"
37
#include "swift/ABI/Actor.h"
38
#include "swift/Basic/ListMerger.h"
39
-#ifndef SWIFT_CONCURRENCY_BACK_DEPLOYMENT
40
-#include "llvm/Config/config.h"
41
-#else
+#ifdef SWIFT_CONCURRENCY_BACK_DEPLOYMENT
42
// All platforms where we care about back deployment have a known
43
// configurations.
44
#define HAVE_PTHREAD_H 1
@@ -72,7 +70,7 @@
72
70
#include <sys/syscall.h>
73
71
#endif
74
75
-#if HAVE_PTHREAD_H
+#if defined(_POSIX_THREADS)
76
#include <pthread.h>
77
78
// Only use __has_include since HAVE_PTHREAD_NP_H is not provided.
0 commit comments