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
parent d651012688
commit e17969c03f

View File

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