Skip to content

Commit

Permalink
fixes #24371; incorrect importc wrapper incompatible with gcc 14 on W…
Browse files Browse the repository at this point in the history
…indows (#24388)

fixes #24371
  • Loading branch information
ringabout authored Oct 30, 2024
1 parent 1576563 commit 74df699
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions lib/windows/winlean.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 74df699

Please sign in to comment.