diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-02-22 15:59:13 -0500 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-02-22 15:59:13 -0500 |
| commit | 936d0b18b116ea126893d2f165f9be72f8bef845 (patch) | |
| tree | 8481d2c4265d34217e6b045cbf1c7e34c30aab51 /lib/std/start.zig | |
| parent | 0cd89e9176ab36fc5e267120dc4d75cb79d32684 (diff) | |
| download | zig-936d0b18b116ea126893d2f165f9be72f8bef845.tar.gz zig-936d0b18b116ea126893d2f165f9be72f8bef845.zip | |
update std lib to integrate with libc for environ
closes #3511
Diffstat (limited to 'lib/std/start.zig')
| -rw-r--r-- | lib/std/start.zig | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/std/start.zig b/lib/std/start.zig index e6c21ba9b8..b58b6e8144 100644 --- a/lib/std/start.zig +++ b/lib/std/start.zig @@ -21,7 +21,9 @@ comptime { @export(main, .{ .name = "main", .linkage = .Weak }); } } else if (builtin.os == .windows) { - if (!@hasDecl(root, "WinMain") and !@hasDecl(root, "WinMainCRTStartup") and !@hasDecl(root, "wWinMain") and !@hasDecl(root, "wWinMainCRTStartup")) { + if (!@hasDecl(root, "WinMain") and !@hasDecl(root, "WinMainCRTStartup") and + !@hasDecl(root, "wWinMain") and !@hasDecl(root, "wWinMainCRTStartup")) + { @export(WinMainCRTStartup, .{ .name = "WinMainCRTStartup" }); } } else if (builtin.os == .uefi) { @@ -34,7 +36,11 @@ comptime { } } -fn _DllMainCRTStartup(hinstDLL: std.os.windows.HINSTANCE, fdwReason: std.os.windows.DWORD, lpReserved: std.os.windows.LPVOID) callconv(.Stdcall) std.os.windows.BOOL { +fn _DllMainCRTStartup( + hinstDLL: std.os.windows.HINSTANCE, + fdwReason: std.os.windows.DWORD, + lpReserved: std.os.windows.LPVOID, +) callconv(.Stdcall) std.os.windows.BOOL { if (@hasDecl(root, "DllMain")) { return root.DllMain(hinstDLL, fdwReason, lpReserved); } |
