| Index: Source/platform/geometry/IntPoint.h
|
| diff --git a/Source/platform/geometry/IntPoint.h b/Source/platform/geometry/IntPoint.h
|
| index 6d4d3f9a5466b811f06aa392bfb9bf204e2b7f44..206f21098f7cbb32252419828abef32176402df0 100644
|
| --- a/Source/platform/geometry/IntPoint.h
|
| +++ b/Source/platform/geometry/IntPoint.h
|
| @@ -32,10 +32,9 @@
|
|
|
| #if OS(MACOSX)
|
| typedef struct CGPoint CGPoint;
|
| -#ifdef NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES
|
| -typedef struct CGPoint NSPoint;
|
| -#else
|
| -typedef struct _NSPoint NSPoint;
|
| +
|
| +#ifdef __OBJC__
|
| +#import <Foundation/Foundation.h>
|
| #endif
|
| #endif
|
|
|
| @@ -92,7 +91,7 @@ public:
|
| explicit IntPoint(const CGPoint&); // don't do this implicitly since it's lossy
|
| operator CGPoint() const;
|
|
|
| -#if !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES)
|
| +#if defined(__OBJC__) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES)
|
| explicit IntPoint(const NSPoint&); // don't do this implicitly since it's lossy
|
| operator NSPoint() const;
|
| #endif
|
|
|