ziutek / ftdi

Go binding for libFTDI
Other
25 stars 14 forks source link

Fix compilation errors related to libusb_strerror #20

Closed rasky closed 2 years ago

rasky commented 2 years ago

Some versions of libusb.h define libusb_strerror as taking a "int", while others take a "enum libusb_error". This doesn't matter for C but it matters for Go. Create a wrapper with a fixed type, so that Go doesn't complain.