Fixed sockets on Win32.
This commit is contained in:
parent
f695bb0b6f
commit
f5023ac544
1 changed files with 2 additions and 6 deletions
|
|
@ -334,12 +334,8 @@ const
|
||||||
|
|
||||||
proc WSAGetLastError*(): cint {.importc: "WSAGetLastError", dynlib: ws2dll.}
|
proc WSAGetLastError*(): cint {.importc: "WSAGetLastError", dynlib: ws2dll.}
|
||||||
|
|
||||||
when hostCPU == "amd64":
|
type
|
||||||
type
|
TSocketHandle* = distinct int
|
||||||
TSocketHandle* = distinct int # on WIN64 `SOCKET` is UINT_PTR
|
|
||||||
else:
|
|
||||||
type
|
|
||||||
TSocketHandle* = distinct cuint # on WIN32 `SOCKET` is U_INT (unsigned int)
|
|
||||||
|
|
||||||
type
|
type
|
||||||
TWSAData* {.pure, final, importc: "WSADATA", header: "Winsock2.h".} = object
|
TWSAData* {.pure, final, importc: "WSADATA", header: "Winsock2.h".} = object
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue