Commit 02b7ef1c authored by David Reid's avatar David Reid

Fix a compiler error on some compilers.

parent a9088c32
...@@ -2787,7 +2787,7 @@ static MAL_INLINE float mal_mix_f32(float x, float y, float a) ...@@ -2787,7 +2787,7 @@ static MAL_INLINE float mal_mix_f32(float x, float y, float a)
// Atomics // Atomics
// //
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
#if defined(_WIN32) && defined(_MSC_VER) #if defined(_WIN32) && !defined(__GNUC__)
#define mal_memory_barrier() MemoryBarrier() #define mal_memory_barrier() MemoryBarrier()
#define mal_atomic_exchange_32(a, b) InterlockedExchange((LONG*)a, (LONG)b) #define mal_atomic_exchange_32(a, b) InterlockedExchange((LONG*)a, (LONG)b)
#define mal_atomic_exchange_64(a, b) InterlockedExchange64((LONGLONG*)a, (LONGLONG)b) #define mal_atomic_exchange_64(a, b) InterlockedExchange64((LONGLONG*)a, (LONGLONG)b)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment