mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-17 04:59:33 +02:00
*arm: TPECoffLinker is TInternalLinkerWin
+arm : InterlockedCompareExchangePointer git-svn-id: trunk@3993 -
This commit is contained in:
parent
c3d99528e7
commit
3afad32966
@ -1792,7 +1792,7 @@ initialization
|
||||
{$endif x86_64}
|
||||
{$ifdef arm}
|
||||
RegisterExternalLinker(system_arm_wince_info,TExternalLinkerWin);
|
||||
RegisterInternalLinker(system_arm_wince_info,TPECoffLinker);
|
||||
RegisterInternalLinker(system_arm_wince_info,TInternalLinkerWin);
|
||||
RegisterImport(system_arm_wince,TImportLibWin);
|
||||
RegisterExport(system_arm_wince,TExportLibWin);
|
||||
RegisterRes(res_gnu_wince_windres_info);
|
||||
|
@ -211,3 +211,10 @@ function InterLockedExchangeAdd (var Target: longint;Source : longint) : longint
|
||||
Result:=Target;
|
||||
inc(Target,Source);
|
||||
end;
|
||||
|
||||
function InterlockedCompareExchange(var Target: longint; NewValue: longint; Comperand: longint): longint;
|
||||
begin
|
||||
Result:=Target; //return initial value
|
||||
if (Target=Comperand)
|
||||
then Target:=NewValue;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user