authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-01-07 20:57:18-08:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-01-07 21:13:16-08:00
log130fc7ef751e665de14b440a3b5a3ee75d2312e0
tree7d5fcfb1148a047b4813c78d7d574aa57f84727c
parent4319c8924ed2a73abdc8f4caa80703d2949be810

std.c: use {} rather than void for absent functions


1 files changed, 4 insertions(+), 5 deletions(-)

lib/std/c.zig+4-5
......@@ -10579,7 +10579,7 @@ pub const socket = switch (native_os) {
1057910579
1058010580pub const socketpair = switch (native_os) {
1058110581 // https://devblogs.microsoft.com/commandline/af_unix-comes-to-windows/#unsupported\unavailable:
10582 .windows => void,
10582 .windows => {},
1058310583 else => private.socketpair,
1058410584};
1058510585
......@@ -10766,11 +10766,10 @@ pub extern "c" fn recvfrom(
1076610766) if (native_os == .windows) c_int else isize;
1076710767
1076810768pub const recvmsg = switch (native_os) {
10769 // Windows: Technically, a form of recvmsg() exists for Windows, but the
10770 // user has to install some kind of callback for it. I'm not sure if/how
10771 // we can map this to normal recvmsg() interface use.
10769 // Technically, a form of recvmsg() exists for Windows, but the user has to
10770 // install some kind of callback for it.
1077210771 // https://learn.microsoft.com/en-us/windows/win32/api/mswsock/nc-mswsock-lpfn_wsarecvmsg
10773 .windows => void,
10772 .windows => {},
1077410773 else => private.recvmsg,
1077510774};
1077610775