mini_al: Use WinAPI interlocked ops with tcc
Seems tcc doesn't provide __sync_*. See #435.
This commit is contained in:
parent
8b0fef6c34
commit
3f59bdfc76
1 changed files with 1 additions and 1 deletions
2
src/external/mini_al.h
vendored
2
src/external/mini_al.h
vendored
|
@ -2037,7 +2037,7 @@ static 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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue