Fix build error on macOS 10.6

* src/nsfns.m (compute_tip_xy): Cast NSRect to CGRect and NSPoint to
CGPoint.
This commit is contained in:
Alan Third 2017-05-29 17:01:44 +01:00
parent 443f371636
commit c503188f80

View file

@ -2753,7 +2753,7 @@ and GNUstep implementations ("distributor-specific release
/* Find the screen that pt is on. */
for (screen in [NSScreen screens])
#ifdef NS_IMPL_COCOA
if (CGRectContainsPoint ([screen frame], pt))
if (CGRectContainsPoint ((CGRect)[screen frame], (CGPoint)pt))
#else
if (pt.x >= screen.frame.origin.x
&& pt.x < screen.frame.origin.x + screen.frame.size.width