Skip to content

Commit 64bd784

Browse files
authored
Merge pull request swiftlang#59361 from al45tair/eng/PR-90776105-extra
[Threading] Close and re-open namespace around include.
2 parents 5b1b1f5 + 863ab00 commit 64bd784

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

include/swift/Threading/Impl/Darwin.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,15 @@ inline void once_impl(once_t &predicate, void (*fn)(void *), void *context) {
116116
#define SWIFT_THREADING_USE_RESERVED_TLS_KEYS 1
117117

118118
#if __has_include(<pthread/tsd_private.h>)
119+
} // namespace threading_impl
120+
} // namespace swift
121+
122+
extern "C" {
119123
#include <pthread/tsd_private.h>
124+
}
125+
126+
namespace swift {
127+
namespace threading_impl {
120128
#else
121129
#define __PTK_FRAMEWORK_SWIFT_KEY0 100
122130
#define __PTK_FRAMEWORK_SWIFT_KEY1 101

0 commit comments

Comments
 (0)