From c503188f8079ae73d95abd0bce0f53d104b03205 Mon Sep 17 00:00:00 2001 From: Alan Third Date: Mon, 29 May 2017 17:01:44 +0100 Subject: [PATCH] Fix build error on macOS 10.6 * src/nsfns.m (compute_tip_xy): Cast NSRect to CGRect and NSPoint to CGPoint. --- src/nsfns.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.11.4.GIT