Issue #346, anonymous structure names fix by Gary Byers

This commit is contained in:
Christopher Lloyd 2009-08-07 15:02:08 +00:00
parent 94a39129bc
commit a2817abb33
2 changed files with 4 additions and 4 deletions

View File

@ -14,7 +14,7 @@ typedef double CGFloat;
typedef float CGFloat;
#endif
typedef struct {
typedef struct _CGPoint {
CGFloat x;
CGFloat y;
} NSPoint;
@ -22,7 +22,7 @@ typedef struct {
typedef NSPoint *NSPointArray;
typedef NSPoint *NSPointPointer;
typedef struct {
typedef struct _CGSize {
CGFloat width;
CGFloat height;
} NSSize;
@ -30,7 +30,7 @@ typedef struct {
typedef NSSize *NSSizeArray;
typedef NSSize *NSSizePointer;
typedef struct {
typedef struct _CGRect {
NSPoint origin;
NSSize size;
} NSRect;

View File

@ -8,7 +8,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
#import <Foundation/NSObject.h>
typedef struct {
typedef struct _NSRange {
NSUInteger location;
NSUInteger length;
} NSRange;