Skip to content

Commit 27c7914

Browse files
authored
druntime: Don't needlessly pollute C namespace with getTLSAnchor symbol (#4861)
1 parent 9c4e848 commit 27c7914

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

runtime/druntime/src/rt/dso.d

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ version (Posix)
7878
version (Darwin)
7979
{
8080
align(16) byte tlsAnchor = 1;
81-
extern(C) void* getTLSAnchor() nothrow @nogc
81+
void* getTLSAnchor() nothrow @nogc
8282
{
8383
return &tlsAnchor;
8484
}

runtime/druntime/src/rt/sections_elf_shared.d

+1-1
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ else
486486

487487
version (Darwin)
488488
{
489-
extern(C) alias GetTLSAnchor = void* function() nothrow @nogc;
489+
alias GetTLSAnchor = void* function() nothrow @nogc;
490490
}
491491
else version (Windows)
492492
{

0 commit comments

Comments
 (0)