Commit 4c7a2b4c authored by Alexandre Julliard's avatar Alexandre Julliard

makefiles: Compare the full path when looking for generated include files.

parent 5d4ca222
......@@ -756,7 +756,16 @@ static struct incl_file *find_include_file( const struct makefile *make, const c
struct incl_file *file;
LIST_FOR_EACH_ENTRY( file, &make->includes, struct incl_file, entry )
if (!strcmp( name, file->name )) return file;
{
const char *filename = file->filename;
if (!filename) continue;
if (make->obj_dir && strlen(make->obj_dir) < strlen(filename))
{
filename += strlen(make->obj_dir);
while (*filename == '/') filename++;
}
if (!strcmp( name, filename )) return file;
}
return NULL;
}
......
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