mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +00:00
Fixes #7852 Before, the modified test would fail with: ``` error: lld-link: undefined symbol: wWinMain note: referenced by C:\Users\Ryan\Programming\Zig\zig-x86_64-windows-0.15.1\lib\libc\mingw\crt\crtexewin.c:66 note: libmingw32.lib(ucrtexewin.obj):(wmain) ```
15 lines
335 B
Zig
15 lines
335 B
Zig
const std = @import("std");
|
|
|
|
pub fn wWinMain(
|
|
inst: std.os.windows.HINSTANCE,
|
|
prev: ?std.os.windows.HINSTANCE,
|
|
cmd_line: std.os.windows.LPWSTR,
|
|
cmd_show: c_int,
|
|
) std.os.windows.INT {
|
|
_ = inst;
|
|
_ = prev;
|
|
_ = cmd_line;
|
|
_ = cmd_show;
|
|
std.debug.print("hello from Zig wWinMain\n", .{});
|
|
return 0;
|
|
}
|