IDE: fixed compilation with fpc 2.2.0

git-svn-id: trunk@15292 -
This commit is contained in:
vincents 2008-06-02 18:28:38 +00:00
parent 6aa7877586
commit ad99296adb

View File

@ -556,8 +556,13 @@ begin
// On platforms other than windows, ExtractShortPathName is implemented
// too and simply returns the passed file name, so there is no need
// 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
MakeIDECfgFilename:=ExtractShortPathName(MakeIDECfgFilename);
{$ENDIF}
ExtraOptions:='@'+MakeIDECfgFilename;
exit;
end;