[MacPorts] #52210: libsdl2 can build on 10.6, but instructions a bit vague

MacPorts noreply at macports.org
Thu Nov 3 10:14:56 CET 2016


#52210: libsdl2 can build on 10.6, but instructions a bit vague
-------------------------------------+--------------------
  Reporter:  kenneth.f.cunningham@…  |      Owner:  jmroot
      Type:  defect                  |     Status:  new
  Priority:  Low                     |  Milestone:
 Component:  ports                   |    Version:
Resolution:                          |   Keywords:
      Port:  libsdl2                 |
-------------------------------------+--------------------

Comment (by jeremyhu):

 > It's not a fix. It's part of the code that throws an error and had to be
 commented out :)

 Oh, I just assumed you added the respondsToSelector:bits.

 You'll want to do something like:
 {{{
 #if __MAC_OS_X_VERSION_MAX_ALLOWED >= 1070
     if ([window respondsToSelector:@selector(convertRectToScreen:)]) {
         rect = [window convertRectToScreen:rect];
      } else {
         rect.origin = [window convertBaseToScreen:rect.origin];
      }
 #else
     rect.origin = [window convertBaseToScreen:rect.origin];
 #endif
 }}}

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



More information about the macports-tickets mailing list