mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 21:09:24 +02:00
* 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:
parent
20a804152d
commit
f31889df57
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user