Ticket #56156: patch-libusb-10.7-nospeedsuper.diff

File patch-libusb-10.7-nospeedsuper.diff, 667 bytes (added by kencu (Ken), 3 years ago)
  • libusb/os/darwin_usb.c

    diff --git a/libusb/os/darwin_usb.c b/libusb/os/darwin_usb.c
    index 35ea1c3..909f267 100644
    a b static int process_new_device (struct libusb_context *ctx, io_service_t service) 
    10391039    case kUSBDeviceSpeedLow: dev->speed = LIBUSB_SPEED_LOW; break;
    10401040    case kUSBDeviceSpeedFull: dev->speed = LIBUSB_SPEED_FULL; break;
    10411041    case kUSBDeviceSpeedHigh: dev->speed = LIBUSB_SPEED_HIGH; break;
    1042 #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1070
     1042#if MAC_OS_X_VERSION_MAX_ALLOWED > 1070
    10431043    case kUSBDeviceSpeedSuper: dev->speed = LIBUSB_SPEED_SUPER; break;
    10441044#endif
    10451045#if MAC_OS_X_VERSION_MAX_ALLOWED >= 101200