浏览代码

mini_al: Use WinAPI interlocked ops with tcc

Seems tcc doesn't provide __sync_*. See #435.
pull/524/head
Ahmad Fatoum 7 年前
父节点
当前提交
3f59bdfc76
找不到此签名对应的密钥 GPG 密钥 ID: C3EAC3DE9321D59B
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      src/external/mini_al.h

+ 1
- 1
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)

正在加载...
取消
保存