Commit 5e09a28a authored by David Reid's avatar David Reid

Update c89atomic to fix a warning on GCC and Clang.

parent fc8360d0
...@@ -7612,6 +7612,13 @@ Atomics ...@@ -7612,6 +7612,13 @@ Atomics
#if defined(__cplusplus) #if defined(__cplusplus)
extern "C" { extern "C" {
#endif #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 signed char c89atomic_int8;
typedef unsigned char c89atomic_uint8; typedef unsigned char c89atomic_uint8;
typedef signed short c89atomic_int16; typedef signed short c89atomic_int16;
...@@ -7625,6 +7632,9 @@ typedef unsigned __int64 c89atomic_uint64; ...@@ -7625,6 +7632,9 @@ typedef unsigned __int64 c89atomic_uint64;
typedef unsigned long long c89atomic_int64; typedef unsigned long long c89atomic_int64;
typedef unsigned long long c89atomic_uint64; typedef unsigned long long c89atomic_uint64;
#endif #endif
#if defined(__GNUC__)
#pragma GCC diagnostic pop
#endif
typedef int c89atomic_memory_order; typedef int c89atomic_memory_order;
typedef unsigned char c89atomic_bool; typedef unsigned char c89atomic_bool;
typedef unsigned char c89atomic_flag; typedef unsigned char c89atomic_flag;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment