diff --git a/rtl/objpas/sysutils/fina.inc b/rtl/objpas/sysutils/fina.inc index 5889e0e734..f8f14335e9 100644 --- a/rtl/objpas/sysutils/fina.inc +++ b/rtl/objpas/sysutils/fina.inc @@ -424,7 +424,7 @@ begin Result:=Path; l:=Length(Result); If (L=0) or not CharInSet(Result[l],AllowDirectorySeparators) then -{$if defined(Amiga) or defined(AROS) or defined(MorphOS)} +{$ifdef HASAMIGA} If (L>0) and (Result[l] <> DriveSeparator) then {$endif} {$ifdef SYSUTILSUNICODE}