Skip to content

Commit

Permalink
Merge pull request tomaz#189 from malaba/master
Browse files Browse the repository at this point in the history
Make it compile on 10.6, thanks to @malaba. Closes tomaz#172 and tomaz#189.
  • Loading branch information
tomaz committed Feb 24, 2012
2 parents 0acde9d + 89da786 commit 3fb5d08
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Parsing/GBTokenizer.m
Expand Up @@ -312,6 +312,7 @@ - (NSString *)lineByPreprocessingHeaderDocDirectives:(NSString *)line {
}

- (NSArray *)linesByReorderingHeaderDocDirectives:(NSArray *)lines {
#if MAC_OS_X_VERSION_MIN_REQUIRED > __MAC_10_6
if (!self.settings.preprocessHeaderDoc) return lines;

// Make sure that @param and @return is placed at the end (after abstract etc.)
Expand All @@ -337,6 +338,9 @@ - (NSArray *)linesByReorderingHeaderDocDirectives:(NSArray *)lines {

[reorderedNonParams addObjectsFromArray:reorderedParams];
return reorderedNonParams;
#else
return lines;
#endif
}

- (void)resetComments {
Expand Down

0 comments on commit 3fb5d08

Please sign in to comment.