mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-13 18:49:19 +02:00
IDE: fixed compilation with fpc 2.2.0
git-svn-id: trunk@15292 -
This commit is contained in:
parent
6aa7877586
commit
ad99296adb
@ -556,8 +556,13 @@ begin
|
|||||||
// On platforms other than windows, ExtractShortPathName is implemented
|
// On platforms other than windows, ExtractShortPathName is implemented
|
||||||
// too and simply returns the passed file name, so there is no need
|
// too and simply returns the passed file name, so there is no need
|
||||||
// for $IFDEF.
|
// for $IFDEF.
|
||||||
|
{$IFNDEF VER2_2_0}
|
||||||
|
// ExtractShortPathName is only available in fpc 2.2.1
|
||||||
|
// fortunately, we don't support a PCP with space on windows for
|
||||||
|
// fpc 2.2.0
|
||||||
if pos(' ',MakeIDECfgFilename)>0 then
|
if pos(' ',MakeIDECfgFilename)>0 then
|
||||||
MakeIDECfgFilename:=ExtractShortPathName(MakeIDECfgFilename);
|
MakeIDECfgFilename:=ExtractShortPathName(MakeIDECfgFilename);
|
||||||
|
{$ENDIF}
|
||||||
ExtraOptions:='@'+MakeIDECfgFilename;
|
ExtraOptions:='@'+MakeIDECfgFilename;
|
||||||
exit;
|
exit;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user