mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-24 09:14:04 +02:00
Update c89atomic.
This commit is contained in:
+24
-24
@@ -7587,32 +7587,32 @@ Atomics
|
|||||||
#if defined(__cplusplus)
|
#if defined(__cplusplus)
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
#if defined(__GNUC__)
|
typedef signed char c89atomic_int8;
|
||||||
#pragma GCC diagnostic push
|
typedef unsigned char c89atomic_uint8;
|
||||||
#pragma GCC diagnostic ignored "-Wlong-long"
|
typedef signed short c89atomic_int16;
|
||||||
#if defined(__clang__)
|
typedef unsigned short c89atomic_uint16;
|
||||||
#pragma GCC diagnostic ignored "-Wc++11-long-long"
|
typedef signed int c89atomic_int32;
|
||||||
|
typedef unsigned int c89atomic_uint32;
|
||||||
|
#if defined(_MSC_VER)
|
||||||
|
typedef signed __int64 c89atomic_int64;
|
||||||
|
typedef unsigned __int64 c89atomic_uint64;
|
||||||
|
#else
|
||||||
|
#if defined(__GNUC__)
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wlong-long"
|
||||||
|
#if defined(__clang__)
|
||||||
|
#pragma GCC diagnostic ignored "-Wc++11-long-long"
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
typedef signed long long c89atomic_int64;
|
||||||
|
typedef unsigned long long c89atomic_uint64;
|
||||||
|
#if defined(__GNUC__)
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
typedef signed char c89atomic_int8;
|
typedef int c89atomic_memory_order;
|
||||||
typedef unsigned char c89atomic_uint8;
|
typedef unsigned char c89atomic_bool;
|
||||||
typedef signed short c89atomic_int16;
|
typedef unsigned char c89atomic_flag;
|
||||||
typedef unsigned short c89atomic_uint16;
|
|
||||||
typedef signed int c89atomic_int32;
|
|
||||||
typedef unsigned int c89atomic_uint32;
|
|
||||||
#if defined(_MSC_VER)
|
|
||||||
typedef signed __int64 c89atomic_int64;
|
|
||||||
typedef unsigned __int64 c89atomic_uint64;
|
|
||||||
#else
|
|
||||||
typedef unsigned long long c89atomic_int64;
|
|
||||||
typedef unsigned long long c89atomic_uint64;
|
|
||||||
#endif
|
|
||||||
#if defined(__GNUC__)
|
|
||||||
#pragma GCC diagnostic pop
|
|
||||||
#endif
|
|
||||||
typedef int c89atomic_memory_order;
|
|
||||||
typedef unsigned char c89atomic_bool;
|
|
||||||
typedef unsigned char c89atomic_flag;
|
|
||||||
#if !defined(C89ATOMIC_64BIT) && !defined(C89ATOMIC_32BIT)
|
#if !defined(C89ATOMIC_64BIT) && !defined(C89ATOMIC_32BIT)
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#ifdef _WIN64
|
#ifdef _WIN64
|
||||||
|
|||||||
Reference in New Issue
Block a user