Update c89atomic to fix a warning on GCC and Clang.

This commit is contained in:
David Reid
2020-06-24 20:00:57 +10:00
parent fc8360d0cd
commit 5e09a28a7a
+10
View File
@@ -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;