diff options
| author | Ahmad Fatoum <[email protected]> | 2018-04-11 11:29:49 +0200 |
|---|---|---|
| committer | Ahmad Fatoum <[email protected]> | 2018-04-11 11:29:49 +0200 |
| commit | 3f59bdfc7603d64612856c6b1c03db61b6ed8b20 (patch) | |
| tree | 9609c29c3db863a61b6e64d1f0163b788404632b /src | |
| parent | 8b0fef6c34bc6732e297edd85627d62fe1d6e6be (diff) | |
| download | raylib-3f59bdfc7603d64612856c6b1c03db61b6ed8b20.tar.gz raylib-3f59bdfc7603d64612856c6b1c03db61b6ed8b20.zip | |
mini_al: Use WinAPI interlocked ops with tcc
Seems tcc doesn't provide __sync_*. See #435.
Diffstat (limited to 'src')
| -rw-r--r-- | src/external/mini_al.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/external/mini_al.h b/src/external/mini_al.h index 5036d267..d69abe41 100644 --- a/src/external/mini_al.h +++ b/src/external/mini_al.h @@ -2037,7 +2037,7 @@ static 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) |
