Closed nonsense closed 6 years ago
Did you check if it works with Go1.11?
@imsodin yes, I checked, and this PR works with Go1.11 and Go1.10.4.
Actually current master (https://github.com/rjeczalik/notify/commit/4e54e7fd043e865c50bda93359fb78813a8d165b) works fine with Go1.11, however it doesn't work with Go1.10.4.
Thanks @nonsense for the PR! I did know about C.kCFAllocatorDefault
.
This PR is removing
refZero
and usingC.kCFAllocatorDefault
instead, which according to https://github.com/golang/text/commit/572a2b141f625f4360cf42a41a43622067e0510b and https://developer.apple.com/documentation/corefoundation/kcfallocatordefault is defined asNULL
.Current version does not compile under
go version go1.10.4 darwin/amd64
and throws:See: https://travis-ci.org/ethereum/go-ethereum/jobs/421003255#L164