mirror of
https://github.com/asmjit/asmjit.git
synced 2025-12-17 04:24:37 +03:00
Added missing pragma for _InterlockedCompareExchange
This commit is contained in:
@@ -31,6 +31,14 @@ namespace asmjit {
|
|||||||
// ============================================================================
|
// ============================================================================
|
||||||
|
|
||||||
#if defined(ASMJIT_OS_WINDOWS)
|
#if defined(ASMJIT_OS_WINDOWS)
|
||||||
|
|
||||||
|
// `_InterlockedCompareExchange` is only available as intrinsic (MS Compiler).
|
||||||
|
#if defined(_MSC_VER)
|
||||||
|
# pragma intrinsic(_InterlockedCompareExchange)
|
||||||
|
#else
|
||||||
|
# define _InterlockedCompareExchange InterlockedCompareExchange
|
||||||
|
#endif // _MSC_VER
|
||||||
|
|
||||||
static volatile uint32_t CpuTicks_hiResOk;
|
static volatile uint32_t CpuTicks_hiResOk;
|
||||||
static volatile double CpuTicks_hiResFreq;
|
static volatile double CpuTicks_hiResFreq;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user