From 5e09a28a7a0548e56544232240cca542c2ba87fe Mon Sep 17 00:00:00 2001 From: David Reid Date: Wed, 24 Jun 2020 20:00:57 +1000 Subject: [PATCH] Update c89atomic to fix a warning on GCC and Clang. --- miniaudio.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/miniaudio.h b/miniaudio.h index 8de486ae..87181aaa 100644 --- a/miniaudio.h +++ b/miniaudio.h @@ -7612,6 +7612,13 @@ Atomics #if defined(__cplusplus) extern "C" { #endif +#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 char c89atomic_int8; typedef unsigned char c89atomic_uint8; typedef signed short c89atomic_int16; @@ -7625,6 +7632,9 @@ typedef unsigned __int64 c89atomic_uint64; 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;