cmm: Add dirname of the input file to include path.
git-svn-id: svn://kolibrios.org@7668 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
920044111f
commit
40f4d2b2b9
@ -315,6 +315,13 @@ int i;
|
|||||||
printf("Bad input file extension '%s'.",rawext);
|
printf("Bad input file extension '%s'.",rawext);
|
||||||
exit(e_badinputfilename);
|
exit(e_badinputfilename);
|
||||||
}
|
}
|
||||||
|
// Add dirname of the input file to include path.
|
||||||
|
char *slash_idx = strrchr((char*)rawfilename, DIV_FOLD);
|
||||||
|
if (slash_idx) {
|
||||||
|
*slash_idx = '\0';
|
||||||
|
IncludePath((char*)rawfilename);
|
||||||
|
*slash_idx = DIV_FOLD;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void compile()
|
void compile()
|
||||||
|
Loading…
Reference in New Issue
Block a user