skelterjohn / go.wde

Windows, drawing and events for Go
217 stars 46 forks source link

With go 1.12 using _Ctype_int is an error #56

Closed raff closed 5 years ago

raff commented 5 years ago

Trying to compile on Macos with go 1.12 fails with these errors:

   # github.com/skelterjohn/go.wde/cocoa
   cocoa/cocoa_darwin.go:90:25: identifier "_Ctype_int" may conflict with identifiers generated by cgo
   cocoa/cocoa_darwin.go:90:44: identifier "_Ctype_int" may conflict with identifiers generated by cgo
   cocoa/cocoa_darwin.go:96:14: identifier "_Ctype_int" may conflict with identifiers generated by cgo

The fix consists in replace _Ctype_int with C.int

skelterjohn commented 5 years ago

Up for contributing that change? :)

raff commented 5 years ago

Submitted pull-request