Skip to content

Commit 2c5c842

Browse files
committed
Merge pull request #119 from dawgfoto/fixModTls
add back functions used in some Windows DLLs
2 parents 3040407 + 8920ebb commit 2c5c842

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/rt/dmain2.d

+11-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ extern (C) void rt_moduleTlsDtor();
8484
extern (C) void thread_joinAll();
8585
extern (C) void rt_lifetimeInit();
8686

87-
// NOTE: This is to preserve compatibility with the Windows DLL sample.
87+
// NOTE: This is to preserve compatibility with old Windows DLLs.
8888
extern (C) void _moduleCtor()
8989
{
9090
rt_moduleCtor();
@@ -95,6 +95,16 @@ extern (C) void _moduleDtor()
9595
rt_moduleDtor();
9696
}
9797

98+
extern (C) void _moduleTlsCtor()
99+
{
100+
rt_moduleTlsCtor();
101+
}
102+
103+
extern (C) void _moduleTlsDtor()
104+
{
105+
rt_moduleTlsDtor();
106+
}
107+
98108
version (OSX)
99109
{
100110
// The bottom of the stack

0 commit comments

Comments
 (0)