mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-21 14:55:24 +00:00
Fix declaration of inet_ntop to be GCSafe. (#5266)
This commit is contained in:
committed by
Andreas Rumpf
parent
d651012688
commit
e17969c03f
@@ -852,7 +852,7 @@ proc getProcessTimes*(hProcess: Handle; lpCreationTime, lpExitTime,
|
||||
dynlib: "kernel32", importc: "GetProcessTimes".}
|
||||
|
||||
type inet_ntop_proc = proc(family: cint, paddr: pointer, pStringBuffer: cstring,
|
||||
stringBufSize: int32): cstring {.stdcall.}
|
||||
stringBufSize: int32): cstring {.gcsafe, stdcall.}
|
||||
|
||||
var inet_ntop_real: inet_ntop_proc = nil
|
||||
|
||||
|
||||
Reference in New Issue
Block a user