* apply patch by Michael Ring to fix compilation for ARM THUMB

This commit is contained in:
Sven/Sarah Barth 2025-01-09 07:39:18 +01:00
parent f29fe358ad
commit 5af16b3da3

View File

@ -99,7 +99,7 @@ function InterLockedExchangeAdd (var Target: longint;Source : longint) : longint
function InterlockedCompareExchange(var Target: longint; NewValue: longint; Comperand: longint): longint;
{$else VER3_2}
{$define FPC_SYSTEM_HAS_ATOMIC_CMP_XCHG_32}
function fpc_atomic_cmp_xchg_32(var Target: longint; NewValue; longint; Comparand: longint): longint; [public,alias:'FPC_ATOMIC_CMP_XCHG_32'];
function fpc_atomic_cmp_xchg_32(var Target: longint; NewValue: longint; Comparand: longint): longint; [public,alias:'FPC_ATOMIC_CMP_XCHG_32'];
{$endif VER3_2}
begin
Result:=Target;