Commit e02ff1a1 authored by Bo Yang's avatar Bo Yang

Update _GNUC_VER to use the correct implementation of atomic operation

on Mac.
parent cf502405
......@@ -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
......
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