diff options
author | Bo Yang <teboring@google.com> | 2016-12-20 17:53:55 -0800 |
---|---|---|
committer | Bo Yang <teboring@google.com> | 2016-12-21 13:19:46 -0800 |
commit | e02ff1a1943f3a9040619cb472a8e82128b690e9 (patch) | |
tree | f66aba4b11046dc4f19a5abdae819e8c25645211 | |
parent | cf502405fced99ce4c43382c538bc1e005694244 (diff) | |
download | protobuf-e02ff1a1943f3a9040619cb472a8e82128b690e9.tar.gz protobuf-e02ff1a1943f3a9040619cb472a8e82128b690e9.tar.bz2 protobuf-e02ff1a1943f3a9040619cb472a8e82128b690e9.zip |
Update _GNUC_VER to use the correct implementation of atomic operation
on Mac.
-rw-r--r-- | src/google/protobuf/stubs/atomicops.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/google/protobuf/stubs/atomicops.h b/src/google/protobuf/stubs/atomicops.h index c25492f3..eacec663 100644 --- a/src/google/protobuf/stubs/atomicops.h +++ b/src/google/protobuf/stubs/atomicops.h @@ -196,6 +196,7 @@ Atomic64 Release_Load(volatile const Atomic64* ptr); // Apple. #elif defined(GOOGLE_PROTOBUF_OS_APPLE) +#pragma message(_GNUC_VER) #if __has_feature(cxx_atomic) || _GNUC_VER >= 407 #include <google/protobuf/stubs/atomicops_internals_generic_c11_atomic.h> #else // __has_feature(cxx_atomic) || _GNUC_VER >= 407 |