Invalid ifdef under fpc 3.1.1 Patch by @minesadorada.

git-svn-id: trunk@53428 -
This commit is contained in:
balazs 2016-11-23 18:12:08 +00:00
parent bfcced5fad
commit 31c4b9c2af

View File

@ -160,7 +160,7 @@ function TPackageInstaller.CompilePackage(const AIDEPackage: TIDEPackage;
begin
Result := -1;
{$if declared(lcl_version)}
{$if (lcl_major >= 1) and (lcl_minor >= 7)}
{$if (lcl_major > 0) and (lcl_minor > 6)}
//DoCompilePackage function is only available with Laz 1.7 +
DoOnPackageInstallProgress(imCompilePackage, APackageFile);
Result := PackageEditingInterface.DoCompilePackage(AIDEPackage, [pcfCleanCompile, pcfDoNotSaveEditorFiles], False);