Commit dd2f2e4e authored by Ken Thomases's avatar Ken Thomases Committed by Alexandre Julliard

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

parent ce0f9b31
......@@ -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" ))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment