support the obj-c #import statement in the dependency generator
Task-number: QTBUG-21965 Reviewed-by: joerg (cherry picked from commit d2c7193107a170e2884db52272f4d0ee0da62856) Change-Id: I8a5eb47bfd2c2ee9d064f054565915e64e4902f8 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
This commit is contained in:
parent
b44011fb77
commit
76beb4bbb2
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user