From 1d4df6caa4cbf39fec64e3d8f8acb8d2946e0813 Mon Sep 17 00:00:00 2001 From: "kenton@google.com" Date: Wed, 6 May 2009 22:17:46 +0000 Subject: Fix compile error on Cygwin, where int32 is typedefed to long instead of int, and the compiler can't figure out which overload of this method to use in that case. --- src/google/protobuf/stubs/common.cc | 2 ++ src/google/protobuf/stubs/common.h | 2 ++ 2 files changed, 4 insertions(+) (limited to 'src/google') diff --git a/src/google/protobuf/stubs/common.cc b/src/google/protobuf/stubs/common.cc index da73c566..302be7ae 100644 --- a/src/google/protobuf/stubs/common.cc +++ b/src/google/protobuf/stubs/common.cc @@ -145,6 +145,8 @@ DECLARE_STREAM_OPERATOR(const char* , ) DECLARE_STREAM_OPERATOR(char , SimpleCtoa) DECLARE_STREAM_OPERATOR(int , SimpleItoa) DECLARE_STREAM_OPERATOR(uint , SimpleItoa) +DECLARE_STREAM_OPERATOR(long , SimpleItoa) +DECLARE_STREAM_OPERATOR(unsigned long, SimpleItoa) DECLARE_STREAM_OPERATOR(double , SimpleDtoa) #undef DECLARE_STREAM_OPERATOR diff --git a/src/google/protobuf/stubs/common.h b/src/google/protobuf/stubs/common.h index 3367d4ce..96be91b7 100644 --- a/src/google/protobuf/stubs/common.h +++ b/src/google/protobuf/stubs/common.h @@ -586,6 +586,8 @@ class LIBPROTOBUF_EXPORT LogMessage { LogMessage& operator<<(char value); LogMessage& operator<<(int value); LogMessage& operator<<(uint value); + LogMessage& operator<<(long value); + LogMessage& operator<<(unsigned long value); LogMessage& operator<<(double value); private: -- cgit v1.2.3