From: Alan Third Date: Mon, 29 May 2017 16:01:44 +0000 (+0100) Subject: Fix build error on macOS 10.6 X-Git-Tag: emacs-26.0.90~521^2~237 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c503188f8079ae73d95abd0bce0f53d104b03205;p=emacs.git Fix build error on macOS 10.6 * src/nsfns.m (compute_tip_xy): Cast NSRect to CGRect and NSPoint to CGPoint. --- diff --git a/src/nsfns.m b/src/nsfns.m index a69e44bb227..7bac2836fed 100644 --- a/src/nsfns.m +++ b/src/nsfns.m @@ -2753,7 +2753,7 @@ compute_tip_xy (struct frame *f, /* 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