diff options
author | svenbarth <svenbarth@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2020-04-25 14:08:12 +0000 |
---|---|---|
committer | svenbarth <svenbarth@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2020-04-25 14:08:12 +0000 |
commit | 1158980c5a2be6fcd2f5e254e4b74f31d60977e3 (patch) | |
tree | 8731d08d453cee09b7219e6626c9e383da2d5140 | |
parent | 0e2c3a5c888be9c3be99bd794a3ce43fd4ac940d (diff) | |
download | fpc-1158980c5a2be6fcd2f5e254e4b74f31d60977e3.tar.gz |
Merged revision(s) 44887 from trunk:
* fix WinAPI directive: the purpose is to present the OS' default calling convention which for Windows means stdcall (at least on those platforms that support stdcall) on other platforms it is cdecl (for now)
........
git-svn-id: https://svn.freepascal.org/svn/fpc/branches/fixes_3_2@45070 3ad0048d-3df7-0310-abae-a5850022a9f2
-rw-r--r-- | compiler/pdecsub.pas | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/pdecsub.pas b/compiler/pdecsub.pas index 959eb84ef6..76b19db171 100644 --- a/compiler/pdecsub.pas +++ b/compiler/pdecsub.pas @@ -2348,7 +2348,7 @@ end; procedure pd_winapi(pd:tabstractprocdef); begin - if not(target_info.system in systems_wince) then + if not(target_info.system in systems_all_windows+[system_i386_nativent]) then pd.proccalloption:=pocall_cdecl else pd.proccalloption:=pocall_stdcall; |