Skip to content

Commit

Permalink
Fix build error on Xcode6.3.
Browse files Browse the repository at this point in the history
  • Loading branch information
qfish committed Apr 20, 2015
1 parent fc94c9d commit 69b6ab1
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 3 deletions.
1 change: 0 additions & 1 deletion framework/mvc/view/css/parser/CSSParser.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@

#import "CSSOM.h"
#import "CSSSelector.h"
#import "CSSTokenizer.h"
#import "CSSStyleSheet.h"

#pragma mark -
Expand Down
3 changes: 3 additions & 0 deletions framework/mvc/view/css/parser/CSSParser.m
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@

#if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR)

extern int cssToken;

#import "CSSParser.h"
#import "CSSTokenizer.h"

@interface CSSParser()

Expand Down
1 change: 0 additions & 1 deletion framework/mvc/view/css/parser/CSSTokenizer.h
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,5 @@ extern char * yytext;
extern void yy_create_input(const char* buffer);
extern void yy_delete_input();
extern int yyparse(CSSParser *parser);
int cssToken;

#endif // #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR)
2 changes: 2 additions & 0 deletions framework/mvc/view/css/parser/CSSTokenizer.m
Original file line number Diff line number Diff line change
Expand Up @@ -1802,6 +1802,8 @@

#import "CSSTokenizer.h"

int cssToken;

void yy_create_input(const char* buffer) {
yy_scan_bytes(buffer,strlen(buffer));
}
Expand Down
2 changes: 1 addition & 1 deletion framework/mvc/view/css/parser/cssom/CSSSelector.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ typedef enum CSSSelectorRelation {
ShadowDescendant
} CSSSelectorRelation;

enum PseudoType {
typedef enum PseudoType {
PseudoUnknown = 0,
PseudoEmpty,
PseudoOther,
Expand Down

0 comments on commit 69b6ab1

Please sign in to comment.