Commit 728aa760 authored by liujisi@google.com's avatar liujisi@google.com

Down-integrate form internal opensource branch

parent 0b30eb8c
...@@ -58,6 +58,10 @@ ...@@ -58,6 +58,10 @@
#include <vector> #include <vector>
#include <google/protobuf/stubs/common.h> #include <google/protobuf/stubs/common.h>
// TYPE_BOOL is defined in the MacOS's ConditionalMacros.h.
#ifdef TYPE_BOOL
#undef TYPE_BOOL
#endif // TYPE_BOOL
namespace google { namespace google {
namespace protobuf { namespace protobuf {
......
...@@ -180,6 +180,8 @@ GOOGLE_PROTOBUF_ATOMICOPS_ERROR ...@@ -180,6 +180,8 @@ GOOGLE_PROTOBUF_ATOMICOPS_ERROR
#include <google/protobuf/stubs/atomicops_internals_arm_gcc.h> #include <google/protobuf/stubs/atomicops_internals_arm_gcc.h>
#elif defined(GOOGLE_PROTOBUF_ARCH_MIPS) #elif defined(GOOGLE_PROTOBUF_ARCH_MIPS)
#include <google/protobuf/stubs/atomicops_internals_mips_gcc.h> #include <google/protobuf/stubs/atomicops_internals_mips_gcc.h>
#elif defined(__pnacl__)
#include <google/protobuf/stubs/atomicops_internals_pnacl.h>
#else #else
GOOGLE_PROTOBUF_ATOMICOPS_ERROR GOOGLE_PROTOBUF_ATOMICOPS_ERROR
#endif #endif
......
...@@ -183,11 +183,11 @@ void LogMessage::Finish() { ...@@ -183,11 +183,11 @@ void LogMessage::Finish() {
if (level_ != LOGLEVEL_FATAL) { if (level_ != LOGLEVEL_FATAL) {
InitLogSilencerCountOnce(); InitLogSilencerCountOnce();
MutexLock lock(log_silencer_count_mutex_); MutexLock lock(log_silencer_count_mutex_);
suppress = internal::log_silencer_count_ > 0; suppress = log_silencer_count_ > 0;
} }
if (!suppress) { if (!suppress) {
internal::log_handler_(level_, filename_, line_, message_); log_handler_(level_, filename_, line_, message_);
} }
if (level_ == LOGLEVEL_FATAL) { if (level_ == LOGLEVEL_FATAL) {
......
...@@ -51,6 +51,9 @@ ...@@ -51,6 +51,9 @@
#define GOOGLE_PROTOBUF_ARCH_32_BIT 1 #define GOOGLE_PROTOBUF_ARCH_32_BIT 1
#elif defined(__pnacl__) #elif defined(__pnacl__)
#define GOOGLE_PROTOBUF_ARCH_32_BIT 1 #define GOOGLE_PROTOBUF_ARCH_32_BIT 1
#elif defined(__ppc__)
#define GOOGLE_PROTOBUF_ARCH_PPC 1
#define GOOGLE_PROTOBUF_ARCH_32_BIT 1
#else #else
#error Host architecture was not detected as supported by protobuf #error Host architecture was not detected as supported by protobuf
#endif #endif
......
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