[MacPorts] #61868: libusb @1.0.24: cannot parse USB.h with mainline gcc versions due to variant pragma handling not accepted by gcc

MacPorts noreply at macports.org
Mon Jan 25 14:53:52 UTC 2021


#61868: libusb @1.0.24: cannot parse USB.h with mainline gcc versions due to
variant pragma handling not accepted by gcc
-----------------------------------+-----------------------
  Reporter:  dgonyier              |      Owner:  michaelld
      Type:  defect                |     Status:  reopened
  Priority:  Normal                |  Milestone:
 Component:  ports                 |    Version:  2.6.4
Resolution:                        |   Keywords:
      Port:  libusb, libusb-devel  |
-----------------------------------+-----------------------

Comment (by michaelld):

 @ballapete : can you try out the fix to "IOKit/USB/usb.h" as noted above
 in comment 10 < https://trac.macports.org/ticket/61868#comment:10 >? It
 works for me (& I think others), and even works when we use LegacySupport
 and place the header correctly there ... basically (as @kencu notes
 somewhere) we can do a GCC-style "fixincludes" on "usb.h" to fix the
 #pramga's ... the rest are just warnings, which can ignore reasonably
 safely.

-- 
Ticket URL: <https://trac.macports.org/ticket/61868#comment:28>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list