diff --git a/compiler/symdef.pas b/compiler/symdef.pas index db67c5ee39..82e96c6d29 100644 --- a/compiler/symdef.pas +++ b/compiler/symdef.pas @@ -3870,6 +3870,10 @@ implementation proctypeoption:=potype_none; proccalloption:=pocall_none; procoptions:=[]; +{$ifdef i8086} + if current_settings.x86memorymodel in x86_far_code_models then + procoptions:=procoptions+[po_far]; +{$endif i8086} returndef:=voidtype; savesize:=sizeof(pint); callerargareasize:=0;