mirror of
https://github.com/ziglang/zig.git
synced 2024-11-15 16:45:27 +00:00
std: Move start_windows_tls.zig to os/windows/tls.zig.
Just to be consistent with Linux.
This commit is contained in:
parent
a931bfada5
commit
8056a85151
@ -176,7 +176,7 @@ fn _DllMainCRTStartup(
|
||||
lpReserved: std.os.windows.LPVOID,
|
||||
) callconv(std.os.windows.WINAPI) std.os.windows.BOOL {
|
||||
if (!builtin.single_threaded and !builtin.link_libc) {
|
||||
_ = @import("start_windows_tls.zig");
|
||||
_ = @import("os/windows/tls.zig");
|
||||
}
|
||||
|
||||
if (@hasDecl(root, "DllMain")) {
|
||||
@ -427,7 +427,7 @@ fn _start() callconv(.Naked) noreturn {
|
||||
fn WinStartup() callconv(std.os.windows.WINAPI) noreturn {
|
||||
@setAlignStack(16);
|
||||
if (!builtin.single_threaded and !builtin.link_libc) {
|
||||
_ = @import("start_windows_tls.zig");
|
||||
_ = @import("os/windows/tls.zig");
|
||||
}
|
||||
|
||||
std.debug.maybeEnableSegfaultHandler();
|
||||
@ -438,7 +438,7 @@ fn WinStartup() callconv(std.os.windows.WINAPI) noreturn {
|
||||
fn wWinMainCRTStartup() callconv(std.os.windows.WINAPI) noreturn {
|
||||
@setAlignStack(16);
|
||||
if (!builtin.single_threaded and !builtin.link_libc) {
|
||||
_ = @import("start_windows_tls.zig");
|
||||
_ = @import("os/windows/tls.zig");
|
||||
}
|
||||
|
||||
std.debug.maybeEnableSegfaultHandler();
|
||||
|
Loading…
Reference in New Issue
Block a user