aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/google/protobuf/stubs/common.cc
diff options
context:
space:
mode:
authorGravatar kenton@google.com <kenton@google.com@630680e5-0e50-0410-840e-4b1c322b438d>2009-05-06 22:17:46 +0000
committerGravatar kenton@google.com <kenton@google.com@630680e5-0e50-0410-840e-4b1c322b438d>2009-05-06 22:17:46 +0000
commit1d4df6caa4cbf39fec64e3d8f8acb8d2946e0813 (patch)
treec2ad86edbed4abe4e36ebe083212c70173a553c3 /src/google/protobuf/stubs/common.cc
parente21c5734ecf61c21aa8393a8fbfb55aed8d486d6 (diff)
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.
Diffstat (limited to 'src/google/protobuf/stubs/common.cc')
-rw-r--r--src/google/protobuf/stubs/common.cc2
1 files changed, 2 insertions, 0 deletions
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