zig/test/standalone/windows_entry_points/wwinmain.zig
Ryan Liptak b31a03f134 Let CRT take care of the entry point for wWinMain if libc is linked
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)
```
2025-11-08 17:11:12 -08:00

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;
}