workaround invalid system headers

This commit is contained in:
Nick Chan committed 2023-02-08 17:31:25 +08:00
1 parent 9d9f030e30
commit 5c15ad4ac4
1 file changed
+3
+3
View File
@@ -33,9 +33,12 @@ typedef struct stuff
} stuff_t;
usb_ret_t USBBulkUpload(usb_device_handle_t handle, void *data, int len);
#else
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wpedantic"
#include <IOKit/IOKitLib.h>
#include <IOKit/usb/IOUSBLib.h>
#include <IOKit/IOCFPlugIn.h>
#pragma clang diagnostic pop
#define USB_RET_SUCCESS KERN_SUCCESS
#define USB_RET_NOT_RESPONDING kIOReturnNotResponding