mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-31 13:20:23 +02:00
Converter: Use defines just like in Delphi when simulating Delphi7.
git-svn-id: trunk@41545 -
This commit is contained in:
parent
a15d7330b6
commit
18dec06fdd
@ -1245,7 +1245,10 @@ begin
|
||||
Options.ObjectPath:=CleanProjectSearchPath(Options.ObjectPath);
|
||||
Options.SrcPath:=CleanProjectSearchPath(Options.SrcPath);
|
||||
if fSettings.DelphiDefine then begin
|
||||
s:='-dDelphi7 -dVer150 -dCompiler6_Up';
|
||||
// "Borland" and "Ver150" are defined by Delphi7.
|
||||
// "Delphi7" and "Compiler6_Up" are defined by Jedi library based on other settings.
|
||||
// They are needed because Jedi.inc undefines "Borland" when "FPC" is defined. Nuts.
|
||||
s:='-dBorland -dVer150 -dDelphi7 -dCompiler6_Up';
|
||||
Options.CustomOptions:=s;
|
||||
IDEMessagesWindow.AddMsg(Format(lisConvDelphiAddedCustomOptionDefines, [s]), '', -1);
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user