darwin: Test use of kUSBDeviceSpeedSuper against SDK version

Closes #362

Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
This commit is contained in:
Sean McBride
2018-01-08 16:57:50 -05:00
committed by Chris Dickens
parent 3f6a48d00e
commit c8069cd8c9
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1034,7 +1034,7 @@ static int process_new_device (struct libusb_context *ctx, io_service_t service)
case kUSBDeviceSpeedLow: dev->speed = LIBUSB_SPEED_LOW; break;
case kUSBDeviceSpeedFull: dev->speed = LIBUSB_SPEED_FULL; break;
case kUSBDeviceSpeedHigh: dev->speed = LIBUSB_SPEED_HIGH; break;
#if DeviceVersion >= 500
#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1070
case kUSBDeviceSpeedSuper: dev->speed = LIBUSB_SPEED_SUPER; break;
#endif
#if MAC_OS_X_VERSION_MAX_ALLOWED >= 101200
+1 -1
View File
@@ -1 +1 @@
#define LIBUSB_NANO 11290
#define LIBUSB_NANO 11291