fixes #24371; incorrect importc wrapper incompatible with gcc 14 on Windows (#24388)

fixes #24371

(cherry picked from commit 74df699ff1)
This commit is contained in:
ringabout
2024-10-31 03:17:36 +08:00
committed by narimiran
parent 693b35b59f
commit d84d41dc95

View File

@@ -449,14 +449,9 @@ type
SockLen* = cuint
when defined(cpp):
type
Timeval* {.importc: "timeval", header: "<time.h>".} = object
tv_sec*, tv_usec*: int32
else:
type
Timeval* = object
tv_sec*, tv_usec*: int32
type
Timeval* {.importc: "struct timeval", header: "<time.h>".} = object
tv_sec*, tv_usec*: int32
var
SOMAXCONN* {.importc, header: "winsock2.h".}: cint