makedep: Add support for Objective-C .m files and #import directive.

This commit is contained in:
Ken Thomases 2012-12-20 19:02:20 -06:00 committed by Alexandre Julliard
parent ce0f9b3128
commit dd2f2e4ee5
1 changed files with 4 additions and 2 deletions

View File

@ -653,8 +653,9 @@ static void parse_c_file( INCL_FILE *pFile, FILE *file )
while (*p && isspace(*p)) p++;
if (*p++ != '#') continue;
while (*p && isspace(*p)) p++;
if (strncmp( p, "include", 7 )) continue;
p += 7;
if (!strncmp( p, "include", 7 )) p += 7;
else if (!strncmp( p, "import", 6 )) p += 6;
else continue;
while (*p && isspace(*p)) p++;
if (*p != '\"' && *p != '<' ) continue;
quote = *p++;
@ -805,6 +806,7 @@ static void parse_file( INCL_FILE *pFile, int src )
else if (strendswith( pFile->filename, ".idl" ))
parse_idl_file( pFile, file, 0 );
else if (strendswith( pFile->filename, ".c" ) ||
strendswith( pFile->filename, ".m" ) ||
strendswith( pFile->filename, ".h" ) ||
strendswith( pFile->filename, ".l" ) ||
strendswith( pFile->filename, ".y" ))