소스 검색

Update _GNUC_VER to use the correct implementation of atomic operation
on Mac.

Bo Yang 8 년 전
부모
커밋
e02ff1a194
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/google/protobuf/stubs/atomicops.h

+ 1 - 0
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