mirror of
https://github.com/darlinghq/darling-cocotron.git
synced 2025-04-02 07:01:32 +00:00
fixed compile time error - 'for' loop initial declaration used outside C99 mode
This commit is contained in:
parent
ec99410585
commit
6999e817a6
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user