Ticket #61868: patch-system's-USB_h.diff

File patch-system's-USB_h.diff, 1.2 KB (added by ballapete (Peter "Pete" Dyballa), 4 years ago)

To patch system's /System/Library/Frameworks/IOKit.framework/Headers/usb/USB.h

  • /System/Library/Frameworks/IOKit.framework/Headers/usb/

    old new  
    591591};
    592592typedef struct IOUSBDeviceQualifierDescriptor   IOUSBDeviceQualifierDescriptor;
    593593typedef IOUSBDeviceQualifierDescriptor *        IOUSBDeviceQualifierDescriptorPtr;
    594 #pragma options align=reset
     594#if defined(__clang__) || defined(__llvm__)
     595    #pragma options align=reset
     596#else
     597    #pragma pack()
     598#endif
    595599
    596600/*!
    597601    @typedef IOUSBDFUDescriptor
     
    609613typedef struct  IOUSBDFUDescriptor              IOUSBDFUDescriptor;
    610614typedef                 IOUSBDFUDescriptor *    IOUSBDFUDescriptorPtr;
    611615
    612 #pragma options align=reset
     616#if defined(__clang__) || defined(__llvm__)
     617    #pragma options align=reset
     618#else
     619    #pragma pack()
     620#endif
    613621
    614622/*!
    615623@typedef IOUSBInterfaceAssociationDescriptor
     
    629637};
    630638typedef struct IOUSBInterfaceAssociationDescriptor      IOUSBInterfaceAssociationDescriptor;
    631639typedef IOUSBInterfaceAssociationDescriptor *   IOUSBInterfaceAssociationDescriptorPtr;
    632 #pragma options align=reset
     640#if defined(__clang__) || defined(__llvm__)
     641    #pragma options align=reset
     642#else
     643    #pragma pack()
     644#endif
    633645
    634646/*!
    635647    @typedef USBStatus