Re: [MacPorts] #49391: gtk3 3.18 +quartz variant does not build on Mac OS X 10.6.8, Snow Leopard, "error: expected ‘)’ before ‘instancetype’"

MacPorts noreply at macports.org
Tue Oct 27 00:30:51 PDT 2015


#49391: gtk3 3.18 +quartz variant does not build on Mac OS X 10.6.8, Snow Leopard,
"error: expected ‘)’ before ‘instancetype’"
------------------------------+-------------------
  Reporter:  Peter_Dyballa@…  |      Owner:  cal@…
      Type:  defect           |     Status:  new
  Priority:  Normal           |  Milestone:
 Component:  ports            |    Version:  2.3.4
Resolution:                   |   Keywords:
      Port:  gtk3             |
------------------------------+-------------------

Comment (by elelay@…):

 Here is a patch for gdkcursor-quartz.c:
  1. the compiler on 10.6 doesn't support instancetype so I replaced it
 with id;
  2. it also doesn't support this macro definition so I expanded it
 manually
  3. some cursors are not available on 10.6, so I added a check for
 `respondsToSelector` before calling `performSelector`

 With 1. and 2. gtk3 +quartz compiles on 10.6

 With 3. it doesn't crash when one runs the '''gtk3-demo''' Cursors demo.

 It only makes sense to apply the patch on 10.6.

-- 
Ticket URL: <https://trac.macports.org/ticket/49391#comment:2>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list