mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 08:09:28 +02:00
fcl-passrc: improvement for Amiga, OS4, MorphOS syscalls
git-svn-id: trunk@48909 -
This commit is contained in:
parent
fc6769329f
commit
e668f8732a
@ -5495,8 +5495,12 @@ begin
|
|||||||
else
|
else
|
||||||
// remove legacy or basesysv on MorphOS syscalls
|
// remove legacy or basesysv on MorphOS syscalls
|
||||||
begin
|
begin
|
||||||
if CurTokenIsIdentifier('legacy') or CurTokenIsIdentifier('consoledevice')
|
if (Pos('sysv',LowerCase(CurtokenText))>0) or CurTokenIsIdentifier('legacy') then
|
||||||
or (Curtoken=tkIdentifier) and (Pos('base',LowerCase(CurtokenText))>0) then
|
NextToken;
|
||||||
|
// remove LibBase (Amiga, AROS, MorphOS) or Interface (OS4)
|
||||||
|
if CurTokenIsIdentifier('consoledevice') or
|
||||||
|
((Curtoken=tkIdentifier) and (Pos('base',LowerCase(CurtokenText)) > 0)) or
|
||||||
|
((Curtoken=tkIdentifier) and (CurtokenText[1] = 'I')) then
|
||||||
NextToken;
|
NextToken;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user