diff options
| author | Travis Martin <phasemage@live.com> | 2021-09-10 11:35:16 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-09-14 15:36:08 -0400 |
| commit | 5d14590ed15ce23e7ef8032f8075dcfe76ba9dd8 (patch) | |
| tree | 7bdab669a8af3d953b2da425624da557f9c42473 /lib/std | |
| parent | 370be1265240d73ca0e677287f7ecc00a15d97f9 (diff) | |
| download | zig-5d14590ed15ce23e7ef8032f8075dcfe76ba9dd8.tar.gz zig-5d14590ed15ce23e7ef8032f8075dcfe76ba9dd8.zip | |
Remove WIN16 version of WSAOVERLAPPED. Use LPWSAOVERLAPPED_COMPLETION_ROUTINE
Diffstat (limited to 'lib/std')
| -rw-r--r-- | lib/std/os/windows.zig | 4 | ||||
| -rw-r--r-- | lib/std/os/windows/ws2_32.zig | 8 |
2 files changed, 2 insertions, 10 deletions
diff --git a/lib/std/os/windows.zig b/lib/std/os/windows.zig index 3b1394202f..bc902745ba 100644 --- a/lib/std/os/windows.zig +++ b/lib/std/os/windows.zig @@ -1421,8 +1421,8 @@ pub fn WSAIoctl( dwIoControlCode: DWORD, inBuffer: ?[]const u8, outBuffer: []u8, - overlapped: ?*ws2_32.WSAOVERLAPPED, - completionRoutine: ?ws2_32.WSAOVERLAPPED_COMPLETION_ROUTINE, + overlapped: ?*OVERLAPPED, + completionRoutine: ?ws2_32.LPWSAOVERLAPPED_COMPLETION_ROUTINE, ) !DWORD { var bytes: DWORD = undefined; switch (ws2_32.WSAIoctl( diff --git a/lib/std/os/windows/ws2_32.zig b/lib/std/os/windows/ws2_32.zig index a4ada49bb8..168a098397 100644 --- a/lib/std/os/windows/ws2_32.zig +++ b/lib/std/os/windows/ws2_32.zig @@ -1074,14 +1074,6 @@ pub const WSANETWORKEVENTS = extern struct { iErrorCode: [10]i32, }; -pub const WSAOVERLAPPED = extern struct { - Internal: DWORD, - InternalHigh: DWORD, - Offset: DWORD, - OffsetHigh: DWORD, - hEvent: ?WSAEVENT, -}; - pub const addrinfo = addrinfoa; pub const addrinfoa = extern struct { |
