Equivalent of InterlockedExchangeAdd for Linux using Delphi 10.2) : <p>Delphi 10.2 (having support for Linux) has a cross Platform function AtomicExchange which is equivalent to Windows InterlocekdEchange. So far so good...</p>

<p>I have to port Win32 code making use of InterlockedExchangeAdd which has no AtomicExchangeAdd equivalent.</p>

<p>My question is: what can I use to replace InterlockedExchangeAdd when compiling for Linux ?</p>
