IDE: fixed compiling with old ext tools

git-svn-id: trunk@45495 -
This commit is contained in:
mattias 2014-06-13 12:34:42 +00:00
parent e4751d8f8c
commit c90ba0acf2

View File

@ -3211,8 +3211,12 @@ var
end;
if not Tool.CleanPosToCaret(ErrorPos,CodePos) then continue;
Msg:='unit '+AnUnitName+' requires package '+PkgName;
IDEMessagesWindow.AddCustomMessage(mluError,Msg,
{$IFNDEF EnableOldExtTools}
IDEMessagesWindow.AddCustomMessage(mluWarning,Msg,
CodePos.Code.Filename,CodePos.Y,CodePos.X,'Move Units');
{$ELSE}
IDEMessagesWindow.AddMsg('Warning: '+Msg,'',-1);
{$ENDIF}
end;
end;