[*] Clang build fix

This commit is contained in:
Reece Wilson 2024-03-21 00:34:00 +00:00
parent 9dcb7ca673
commit 779e884caf

View File

@ -432,7 +432,8 @@ inline auline T AuAtomicUtils<T>::Load(T *in)
{
return (T)AuAtomicUtils<AuUInt>::Load((AuUInt *)in);
}
else
{
#if defined(AURORA_COMPILER_MSVC) && (defined(AURORA_ARCH_X64) || defined(AURORA_ARCH_X86))
const auto read = *in;
::_ReadWriteBarrier();
@ -487,6 +488,7 @@ inline auline T AuAtomicUtils<T>::Load(T *in)
#endif
#endif
}
}
template <class T>
inline auline void AuAtomicUtils<T>::Store(T *in, T val)
@ -496,7 +498,8 @@ inline auline void AuAtomicUtils<T>::Store(T *in, T val)
AuAtomicUtils<AuUInt>::Store((AuUInt *)in, (AuUInt)val);
return;
}
else
{
#if defined(AURORA_COMPILER_MSVC) && (defined(AURORA_ARCH_X64) || defined(AURORA_ARCH_X86))
*in = val;
#elif defined(AURORA_COMPILER_MSVC)
@ -583,6 +586,7 @@ inline auline void AuAtomicUtils<T>::Store(T *in, T val)
#endif
#endif
}
}
template <>
inline auline