mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-19 06:13:14 +01:00
Fix (?) rt_stackBottom for Windows.
This commit is contained in:
@@ -77,12 +77,13 @@ extern (C) void* rt_stackBottom()
|
||||
{
|
||||
version( Win32 )
|
||||
{
|
||||
void* bottom;
|
||||
asm
|
||||
{
|
||||
naked;
|
||||
mov EAX,FS:4;
|
||||
ret;
|
||||
mov EAX, FS:4;
|
||||
mov bottom, EAX;
|
||||
}
|
||||
return bottom;
|
||||
}
|
||||
else version( linux )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user