summary refs log tree commit diff stats
path: root/lib/windows
diff options
context:
space:
mode:
Diffstat (limited to 'lib/windows')
-rw-r--r--lib/windows/winlean.nim8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/windows/winlean.nim b/lib/windows/winlean.nim
index 42571b789..c9d595d2c 100644
--- a/lib/windows/winlean.nim
+++ b/lib/windows/winlean.nim
@@ -334,12 +334,8 @@ const
 
 proc WSAGetLastError*(): cint {.importc: "WSAGetLastError", dynlib: ws2dll.}
 
-when hostCPU == "amd64":
-  type
-    TSocketHandle* = distinct int # on WIN64 `SOCKET` is UINT_PTR
-else:
-  type
-    TSocketHandle* = distinct cuint # on WIN32 `SOCKET` is U_INT (unsigned int)
+type
+  TSocketHandle* = distinct int
 
 type
   TWSAData* {.pure, final, importc: "WSADATA", header: "Winsock2.h".} = object