From 02b7ef1c2c3fbc68d06c4c6e84cf202d9e01d903 Mon Sep 17 00:00:00 2001 From: David Reid Date: Thu, 12 Apr 2018 18:42:58 +1000 Subject: [PATCH] Fix a compiler error on some compilers. --- mini_al.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mini_al.h b/mini_al.h index 05d9441e..bd505a40 100644 --- a/mini_al.h +++ b/mini_al.h @@ -2787,7 +2787,7 @@ static MAL_INLINE float mal_mix_f32(float x, float y, float a) // Atomics // /////////////////////////////////////////////////////////////////////////////// -#if defined(_WIN32) && defined(_MSC_VER) +#if defined(_WIN32) && !defined(__GNUC__) #define mal_memory_barrier() MemoryBarrier() #define mal_atomic_exchange_32(a, b) InterlockedExchange((LONG*)a, (LONG)b) #define mal_atomic_exchange_64(a, b) InterlockedExchange64((LONGLONG*)a, (LONGLONG)b)