Skip to content

Commit

Permalink
Remove WIN16 version of WSAOVERLAPPED. Use LPWSAOVERLAPPED_COMPLETION…
Browse files Browse the repository at this point in the history
…_ROUTINE
  • Loading branch information
PhaseMage authored and andrewrk committed Sep 14, 2021
1 parent 370be12 commit 5d14590
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
4 changes: 2 additions & 2 deletions lib/std/os/windows.zig
Expand Up @@ -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(
Expand Down
8 changes: 0 additions & 8 deletions lib/std/os/windows/ws2_32.zig
Expand Up @@ -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 {
Expand Down

0 comments on commit 5d14590

Please sign in to comment.