2020-09-02 15:05:37 +02:00
|
|
|
{$IF (defined(cpuaarch64) or defined(cpuarm))}
|
|
|
|
{$DEFINE USEINVOKECALL}
|
|
|
|
{$IFEND}
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-01-13 11:43:03 +01:00
|
|
|
{$DEFINE PS_HAVEVARIANT}
|
|
|
|
{$DEFINE PS_DYNARRAY}
|
2014-05-19 10:11:51 +02:00
|
|
|
{$ifndef mswindows}
|
|
|
|
{$DEFINE PS_NOIDISPATCH}
|
2020-09-02 15:05:37 +02:00
|
|
|
{$endif}
|
2015-01-12 15:10:32 +01:00
|
|
|
{$if (fpc_version>2) or ((fpc_version=2) and ((fpc_release=2) and (fpc_patch>=4)) or (fpc_release>2))}
|
2010-01-13 11:43:03 +01:00
|
|
|
{$UNDEF FPC_OLD_FIX}
|
|
|
|
{$DEFINE PS_STACKALIGN}
|
|
|
|
{$UNDEF PS_FPCSTRINGWORKAROUND}
|
2010-01-13 15:46:49 +01:00
|
|
|
{$DEFINE PS_RESBEFOREPARAMETERS}
|
2020-09-02 15:05:37 +02:00
|
|
|
{$DEFINE x64_string_result_as_varparameter}
|
2014-05-19 10:11:51 +02:00
|
|
|
{$ifdef mswindows}
|
2015-01-12 15:10:32 +01:00
|
|
|
{$if (fpc_version>2) or ((fpc_version=2) and (fpc_release>5))}
|
2014-05-19 10:11:51 +02:00
|
|
|
{$DEFINE PS_FPC_HAS_COM}
|
|
|
|
{$endif}
|
|
|
|
{$endif}
|
2010-01-13 11:43:03 +01:00
|
|
|
{FreePascal 2.3.1 and above has much Delphi compatibility bugs fixed}
|
|
|
|
{$else}
|
|
|
|
{$DEFINE FPC_OLD_FIX}
|
|
|
|
{$DEFINE PS_FPCSTRINGWORKAROUND}
|
|
|
|
{$ifend}
|
|
|
|
{$DEFINE DELPHI3UP}
|
|
|
|
{$DEFINE DELPHI6UP}
|