Packager: fixed compilation breakage with FPC 3.0.4 after r59720 #0e016b16dc, bug #34652 and lots of other reports.

git-svn-id: trunk@59731 -
This commit is contained in:
maxim 2018-12-05 22:35:14 +00:00
parent d69ccc1655
commit 6d64beff69

View File

@ -125,11 +125,17 @@ begin
end;
function TFppkgHelper.GetPackageUnitPath(const PackageName: string): string;
{$IFNDEF VER3_0}
var
FppkgPackage: TFPPackage;
{$ENDIF VER3_0}
begin
{$IFNDEF VER3_0}
FppkgPackage := FFPpkg.FindPackage(PackageName, pkgpkInstalled);
Result := FppkgPackage.PackagesStructure.GetUnitDirectory(FppkgPackage);
{$ELSE }
Result := '';
{$ENDIF VER3_0}
end;
finalization