打开 protobuf/src/google/protobuf/stubs/atomicops_internals_generic_gcc.h
在下面添加:
inline Atomic64 Release_CompareAndSwap(volatile Atomic64* ptr,
Atomic64 old_value,
Atomic64 new_value) {
__atomic_compare_exchange_n(ptr, &old_value, new_value, false,
__ATOMIC_RELEASE, __ATOMIC_ACQUIRE);
return old_value;
}
来源:CSDN
作者:天地传奇3
链接:https://blog.csdn.net/weixin_43800762/article/details/85090286