diff options
Diffstat (limited to 'src/Native/Runtime/unix/PalRedhawkInline.h')
-rw-r--r-- | src/Native/Runtime/unix/PalRedhawkInline.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Native/Runtime/unix/PalRedhawkInline.h b/src/Native/Runtime/unix/PalRedhawkInline.h index e46d9ce87..67e197e72 100644 --- a/src/Native/Runtime/unix/PalRedhawkInline.h +++ b/src/Native/Runtime/unix/PalRedhawkInline.h @@ -43,7 +43,11 @@ FORCEINLINE Int32 PalInterlockedCompareExchange(_Inout_ _Interlocked_operand_ In FORCEINLINE Int64 PalInterlockedCompareExchange64(_Inout_ _Interlocked_operand_ Int64 volatile *pDst, Int64 iValue, Int64 iComparand) { +#if defined(_WASM_) + PORTABILITY_ASSERT("Emscripten does not support 64-bit atomics until version 1.37.33"); +#else // _WASM_ return __sync_val_compare_and_swap(pDst, iComparand, iValue); +#endif // _WASM_ } #if defined(_AMD64_) |