Hi, I'm trying to load ConnectEx function of WinSock2. The following code is taken from TigerBeetle's source. It compiles on version 0.9.0 but it doesn't on HEAD. What can I do as a workaround?
const LPFN_CONNECTEX = fn (
Socket: os.windows.ws2_32.SOCKET,
SockAddr: *const os.windows.ws2_32.sockaddr,
SockLen: os.socklen_t,
SendBuf: ?*const anyopaque,
SendBufLen: os.windows.DWORD,
BytesSent: *os.windows.DWORD,
Overlapped: *os.windows.OVERLAPPED,
) callconv(os.windows.WINAPI) os.windows.BOOL;
const ConnectEx = try os.windows.loadWinsockExtensionFunction(
LPFN_CONNECTEX,
socket,
windows.ws2_32.WSAID_CONNECTEX,
);