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 ++ 1 file changed, 2 insertions(+) (limited to 'src/google/protobuf/stubs/common.cc') 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 -- cgit v1.2.3