Commit 72afe6ee authored by pliard@google.com's avatar pliard@google.com

Fix build error in Mac atomicops.

parent 324779ad
...@@ -252,7 +252,7 @@ inline AtomicWord Barrier_AtomicIncrement(volatile AtomicWord* ptr, ...@@ -252,7 +252,7 @@ inline AtomicWord Barrier_AtomicIncrement(volatile AtomicWord* ptr,
inline AtomicWord Acquire_CompareAndSwap(volatile AtomicWord* ptr, inline AtomicWord Acquire_CompareAndSwap(volatile AtomicWord* ptr,
AtomicWord old_value, AtomicWord old_value,
AtomicWord new_value) { AtomicWord new_value) {
return v8::internal::Acquire_CompareAndSwap( return Acquire_CompareAndSwap(
reinterpret_cast<volatile AtomicWordCastType*>(ptr), reinterpret_cast<volatile AtomicWordCastType*>(ptr),
old_value, new_value); old_value, new_value);
} }
...@@ -260,7 +260,7 @@ inline AtomicWord Acquire_CompareAndSwap(volatile AtomicWord* ptr, ...@@ -260,7 +260,7 @@ inline AtomicWord Acquire_CompareAndSwap(volatile AtomicWord* ptr,
inline AtomicWord Release_CompareAndSwap(volatile AtomicWord* ptr, inline AtomicWord Release_CompareAndSwap(volatile AtomicWord* ptr,
AtomicWord old_value, AtomicWord old_value,
AtomicWord new_value) { AtomicWord new_value) {
return v8::internal::Release_CompareAndSwap( return Release_CompareAndSwap(
reinterpret_cast<volatile AtomicWordCastType*>(ptr), reinterpret_cast<volatile AtomicWordCastType*>(ptr),
old_value, new_value); old_value, new_value);
} }
...@@ -271,12 +271,12 @@ inline void NoBarrier_Store(volatile AtomicWord* ptr, AtomicWord value) { ...@@ -271,12 +271,12 @@ inline void NoBarrier_Store(volatile AtomicWord* ptr, AtomicWord value) {
} }
inline void Acquire_Store(volatile AtomicWord* ptr, AtomicWord value) { inline void Acquire_Store(volatile AtomicWord* ptr, AtomicWord value) {
return v8::internal::Acquire_Store( return Acquire_Store(
reinterpret_cast<volatile AtomicWordCastType*>(ptr), value); reinterpret_cast<volatile AtomicWordCastType*>(ptr), value);
} }
inline void Release_Store(volatile AtomicWord* ptr, AtomicWord value) { inline void Release_Store(volatile AtomicWord* ptr, AtomicWord value) {
return v8::internal::Release_Store( return Release_Store(
reinterpret_cast<volatile AtomicWordCastType*>(ptr), value); reinterpret_cast<volatile AtomicWordCastType*>(ptr), value);
} }
...@@ -286,12 +286,12 @@ inline AtomicWord NoBarrier_Load(volatile const AtomicWord* ptr) { ...@@ -286,12 +286,12 @@ inline AtomicWord NoBarrier_Load(volatile const AtomicWord* ptr) {
} }
inline AtomicWord Acquire_Load(volatile const AtomicWord* ptr) { inline AtomicWord Acquire_Load(volatile const AtomicWord* ptr) {
return v8::internal::Acquire_Load( return Acquire_Load(
reinterpret_cast<volatile const AtomicWordCastType*>(ptr)); reinterpret_cast<volatile const AtomicWordCastType*>(ptr));
} }
inline AtomicWord Release_Load(volatile const AtomicWord* ptr) { inline AtomicWord Release_Load(volatile const AtomicWord* ptr) {
return v8::internal::Release_Load( return Release_Load(
reinterpret_cast<volatile const AtomicWordCastType*>(ptr)); reinterpret_cast<volatile const AtomicWordCastType*>(ptr));
} }
......
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
#define GOOGLE_PROTOBUF_HOST_ARCH_MIPS 1 #define GOOGLE_PROTOBUF_HOST_ARCH_MIPS 1
#define GOOGLE_PROTOBUF_HOST_ARCH_32_BIT 1 #define GOOGLE_PROTOBUF_HOST_ARCH_32_BIT 1
#else #else
#error Host architecture was not detected as supported by v8 #error Host architecture was not detected as supported by protobuf
#endif #endif
// Target architecture detection. This may be set externally. If not, detect // Target architecture detection. This may be set externally. If not, detect
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
#elif defined(__MIPSEL__) #elif defined(__MIPSEL__)
#define GOOGLE_PROTOBUF_TARGET_ARCH_MIPS 1 #define GOOGLE_PROTOBUF_TARGET_ARCH_MIPS 1
#else #else
#error Target architecture was not detected as supported by v8 #error Target architecture was not detected as supported by protobuf
#endif #endif
#endif #endif
...@@ -111,7 +111,7 @@ ...@@ -111,7 +111,7 @@
#endif #endif
#elif GOOGLE_PROTOBUF_TARGET_ARCH_MIPS #elif GOOGLE_PROTOBUF_TARGET_ARCH_MIPS
#else #else
#error Target architecture is not supported by v8 #error Target architecture is not supported by protobuf
#endif #endif
#if (defined(__APPLE__) && defined(__MACH__)) || \ #if (defined(__APPLE__) && defined(__MACH__)) || \
......
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