mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-22 15:59:15 +02:00
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:
parent
d69ccc1655
commit
6d64beff69
@ -125,11 +125,17 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
function TFppkgHelper.GetPackageUnitPath(const PackageName: string): string;
|
function TFppkgHelper.GetPackageUnitPath(const PackageName: string): string;
|
||||||
|
{$IFNDEF VER3_0}
|
||||||
var
|
var
|
||||||
FppkgPackage: TFPPackage;
|
FppkgPackage: TFPPackage;
|
||||||
|
{$ENDIF VER3_0}
|
||||||
begin
|
begin
|
||||||
|
{$IFNDEF VER3_0}
|
||||||
FppkgPackage := FFPpkg.FindPackage(PackageName, pkgpkInstalled);
|
FppkgPackage := FFPpkg.FindPackage(PackageName, pkgpkInstalled);
|
||||||
Result := FppkgPackage.PackagesStructure.GetUnitDirectory(FppkgPackage);
|
Result := FppkgPackage.PackagesStructure.GetUnitDirectory(FppkgPackage);
|
||||||
|
{$ELSE }
|
||||||
|
Result := '';
|
||||||
|
{$ENDIF VER3_0}
|
||||||
end;
|
end;
|
||||||
|
|
||||||
finalization
|
finalization
|
||||||
|
Loading…
Reference in New Issue
Block a user