fixed compile time error - 'for' loop initial declaration used outside C99 mode

This commit is contained in:
Dr. Rolf Jansen 2011-02-20 16:21:43 -03:00
parent ec99410585
commit 6999e817a6

View File

@ -697,7 +697,8 @@ static inline CGFloat degreesToRadians(CGFloat degrees){
}
-(void)appendBezierPathWithGlyphs:(NSGlyph *)glyphs count:(unsigned)count inFont:(NSFont *)font {
for (int i = 0; i < count; ++i) {
int i;
for (i = 0; i < count; ++i) {
[self appendBezierPathWithGlyph:glyphs[i] inFont:font];
}
}
@ -779,8 +780,8 @@ static inline CGFloat degreesToRadians(CGFloat degrees){
NSBezierPath *path = (NSBezierPath *)[[self class] bezierPath];
BOOL closed = NO; // state of current subpath
for (int i = [self elementCount] - 1; i >= 0; i--)
int i;
for (i = [self elementCount] - 1; i >= 0; i--)
{
// Find the next point : it's the end of previous element in the original path
CGPoint nextPoint = CGPointMake(0,0);