Skip to content

Commit

Permalink
support the obj-c #import statement in the dependency generator
Browse files Browse the repository at this point in the history
Task-number: QTBUG-21965
Reviewed-by: joerg
  • Loading branch information
ossilator committed Oct 14, 2011
1 parent 480b2f4 commit d2c7193
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion qmake/generators/makefiledeps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,8 @@ bool QMakeSourceFileInfo::findDeps(SourceFile *file)
keyword_len++;
}

if(keyword_len == 7 && !strncmp(keyword, "include", keyword_len)) {
if((keyword_len == 7 && !strncmp(keyword, "include", 7)) // C & Obj-C
|| (keyword_len == 6 && !strncmp(keyword, "import", 6))) { // Obj-C
char term = *(buffer + x);
if(term == '<') {
try_local = false;
Expand Down

0 comments on commit d2c7193

Please sign in to comment.