codetools: directory cache now ignores case on windows

git-svn-id: trunk@9617 -
This commit is contained in:
mattias 2006-07-14 23:11:44 +00:00
parent fbcb1ced0c
commit 8473940844

View File

@ -703,11 +703,15 @@ begin
if AnyCase then begin
exit;
end else begin
// check case
// check case platform dependent
{$IFDEF CaseInsensitiveFilenames}
exit;
{$ELSE}
if (Result=lowercase(Result))
or (Result=uppercase(Result))
or (ExtractFileNameOnly(Result)=UnitName) then
exit;
{$ENDIF}
end;
end;
inc(m);
@ -844,6 +848,7 @@ begin
Result:=FindUnitLink(UnitName);
end;
if Result<>'' then begin
// improve unit name
NewUnitName:=ExtractFileNameOnly(Result);
if (NewUnitName<>lowercase(NewUnitName))
and (UnitName<>NewUnitName) then