std: Move start_windows_tls.zig to os/windows/tls.zig.

Just to be consistent with Linux.
This commit is contained in:
Alex Rønne Petersen 2024-08-03 19:40:12 +02:00
parent a931bfada5
commit 8056a85151
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View File

@ -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();