Fix declaration of inet_ntop to be GCSafe. (#5266)

This commit is contained in:
Eugene Kabanov 2017-01-23 17:58:00 +02:00 • committed by Andreas Rumpf
commit e17969c03f

View file

@ -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