Skip to content

Commit 64eb71c

Browse files
s1ddoks1ddok
authored andcommitted
Fix duplicating system methods
1 parent e5a2c75 commit 64eb71c

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

cocos2d/Support/CGPointExtension.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,8 @@ BOOL ccpSegmentIntersect(CGPoint A, CGPoint B, CGPoint C, CGPoint D);
330330
*/
331331
CGPoint ccpIntersectPoint(CGPoint A, CGPoint B, CGPoint C, CGPoint D);
332332

333+
334+
#if !__CC_PLATFORM_IOS
333335
@interface NSValue (CCValue)
334336

335337
+ (NSValue *)valueWithCGPoint:(CGPoint)point;
@@ -343,6 +345,7 @@ CGPoint ccpIntersectPoint(CGPoint A, CGPoint B, CGPoint C, CGPoint D);
343345
- (CGAffineTransform)CGAffineTransformValue;
344346

345347
@end
348+
#endif
346349

347350
#ifdef __cplusplus
348351
}

cocos2d/Support/CGPointExtension.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ float ccpAngle(CGPoint a, CGPoint b)
160160
return angle;
161161
}
162162

163+
#if !__CC_PLATFORM_IOS
163164
@implementation NSValue (CCValue)
164165

165166
+ (NSValue *)valueWithCGPoint:(CGPoint)point
@@ -212,4 +213,5 @@ - (CGAffineTransform)CGAffineTransformValue
212213

213214
@end
214215

216+
#endif
215217

0 commit comments

Comments
 (0)