[*] MSVC build regression

This commit is contained in:
Reece Wilson 2024-03-24 15:30:00 +00:00
parent 782d788531
commit 683e383095

View File

@ -67,7 +67,9 @@
#define AUKN_INTERFACE_EXT AUI_INTERFACE_EXT_FWD #define AUKN_INTERFACE_EXT AUI_INTERFACE_EXT_FWD
#endif #endif
#if defined(MemoryBarrier) #if defined(AURORA_COMPILER_MSVC) && !defined(MemoryBarrier)
#define AURORA_COMPILER_VOLATILE_BARRIER() __faststorefence()
#elif defined(MemoryBarrier)
#define AURORA_COMPILER_VOLATILE_BARRIER() MemoryBarrier() #define AURORA_COMPILER_VOLATILE_BARRIER() MemoryBarrier()
#else #else
#define AURORA_COMPILER_VOLATILE_BARRIER() asm volatile ("" : : : "memory") #define AURORA_COMPILER_VOLATILE_BARRIER() asm volatile ("" : : : "memory")