os/darwin: switch from using ResetDevice to USBDeviceReEnumerate
authorNathan Hjelm <hjelmn@lanl.gov>
Thu, 26 Jul 2018 18:48:07 +0000 (12:48 -0600)
committerNathan Hjelm <hjelmn@cs.unm.edu>
Thu, 26 Jul 2018 19:42:38 +0000 (13:42 -0600)
commitc14ab5fc4d22749aab9e3534d56012718a0b0f67
tree11f9e9732ab4bba3e444637316ec7b168261c5ed
parent5912d561a755c0af799530fb47d5e65eb25fde4a
os/darwin: switch from using ResetDevice to USBDeviceReEnumerate

In newer versions of macOS the ResetDevice function does nothing. For
these systems we have to use USBDeviceReEnumerate. This should also
work for older versions os MacOS X.

Fixes #455

Signed-off-by: Nathan Hjelm <hjelmn@lanl.gov>
libusb/os/darwin_usb.c
libusb/version_nano.h