Fix declaration of inet_ntop to be GCSafe. (#5266)
This commit is contained in:
parent
d651012688
commit
e17969c03f
1 changed files with 1 additions and 1 deletions
|
|
@ -852,7 +852,7 @@ proc getProcessTimes*(hProcess: Handle; lpCreationTime, lpExitTime,
|
||||||
dynlib: "kernel32", importc: "GetProcessTimes".}
|
dynlib: "kernel32", importc: "GetProcessTimes".}
|
||||||
|
|
||||||
type inet_ntop_proc = proc(family: cint, paddr: pointer, pStringBuffer: cstring,
|
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
|
var inet_ntop_real: inet_ntop_proc = nil
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue