From d0c55f1c0d3044085251f60c78854e25365ae6ea Mon Sep 17 00:00:00 2001 From: Thomas Van Lenten Date: Thu, 7 Apr 2016 09:08:02 -0400 Subject: Fix GTMGeometry builds on 64 bit OS X where CG and NS struct sizes may differ. Remove GTMCGPointToNSPoint, GTMNSPointToCGPoint, GTMCGRectToNSRect, GTMCGSizeToNSSize Note that Apple's NSGeometry.h sometimes defines NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES so there's some reason to believe the CG and NS structs can compile incompatibly. Fix a typo in GTMSenTestCase.h --- AppKit/GTMNSBezierPath+Shading.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'AppKit') diff --git a/AppKit/GTMNSBezierPath+Shading.m b/AppKit/GTMNSBezierPath+Shading.m index fa72849..5e65b14 100644 --- a/AppKit/GTMNSBezierPath+Shading.m +++ b/AppKit/GTMNSBezierPath+Shading.m @@ -94,8 +94,8 @@ } CGColorSpaceRef colorspace = [shading colorSpace]; if (nil != colorspace) { - CGPoint toCGPoint = GTMNSPointToCGPoint(toPoint); - CGPoint fromCGPoint = GTMNSPointToCGPoint(fromPoint); + CGPoint toCGPoint = {.x = toPoint.x, .y = toPoint.y}; + CGPoint fromCGPoint = {.x = fromPoint.x, .y = fromPoint.y}; CGShadingRef myCGShading; if(axially) { myCGShading = CGShadingCreateAxial(colorspace, fromCGPoint, -- cgit v1.2.3