Skip to content

Commit 3d35249

Browse files
committed
Merge remote-tracking branch 'origin/master' into master-rebranch
2 parents 61e1268 + 92d5827 commit 3d35249

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

stdlib/public/stubs/ThreadLocalStorage.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ void _stdlib_destroyTLS(void *);
2323
SWIFT_CC(swift) SWIFT_RUNTIME_STDLIB_API
2424
void *_stdlib_createTLS(void);
2525

26+
#if !SWIFT_TLS_HAS_RESERVED_PTHREAD_SPECIFIC || (defined(_WIN32) && !defined(__CYGWIN__))
27+
2628
static void
2729
#if defined(_M_IX86)
2830
__stdcall
@@ -31,6 +33,8 @@ destroyTLS_CCAdjustmentThunk(void *ptr) {
3133
_stdlib_destroyTLS(ptr);
3234
}
3335

36+
#endif
37+
3438
#if defined(_WIN32) && !defined(__CYGWIN__)
3539

3640
typedef

0 commit comments

Comments
 (0)