* Pass const params by pointer if calling convention<>register. This is

needed for the windows unit as Delphi compatibility requires const
    parameters for some procedures and Delphi assumes parameters > 4 to be
    passed as pointer.

git-svn-id: trunk@7982 -
This commit is contained in:
daniel 2007-07-08 17:26:08 +00:00
parent 20a804152d
commit f31889df57

View File

@ -224,7 +224,7 @@ unit cpupara;
formaldef :
result:=true;
recorddef :
result:=((varspez=vs_const) and (def.size>16)) or
result:=((varspez=vs_const) and ((def.size>16) or (calloption<>pocall_register))) or
((target_info.system=system_x86_64_win64) and (def.size>8));
arraydef :
begin