From 83c728a9402fe6a78af53ed471619eda3523d8f5 Mon Sep 17 00:00:00 2001 From: Julien Brianceau Date: Tue, 13 Dec 2016 10:09:11 +0100 Subject: Add missing includes This changes fixes "use of undeclared identifier 'INT_MAX'" compilation error. --- src/google/protobuf/io/coded_stream.h | 1 + src/google/protobuf/message_lite.h | 1 + 2 files changed, 2 insertions(+) (limited to 'src/google') diff --git a/src/google/protobuf/io/coded_stream.h b/src/google/protobuf/io/coded_stream.h index d2a3e279..dc42e2fe 100644 --- a/src/google/protobuf/io/coded_stream.h +++ b/src/google/protobuf/io/coded_stream.h @@ -110,6 +110,7 @@ #define GOOGLE_PROTOBUF_IO_CODED_STREAM_H__ #include +#include #include #include #ifdef _MSC_VER diff --git a/src/google/protobuf/message_lite.h b/src/google/protobuf/message_lite.h index d5de8cdb..5e5ed306 100644 --- a/src/google/protobuf/message_lite.h +++ b/src/google/protobuf/message_lite.h @@ -39,6 +39,7 @@ #ifndef GOOGLE_PROTOBUF_MESSAGE_LITE_H__ #define GOOGLE_PROTOBUF_MESSAGE_LITE_H__ +#include #include #include -- cgit v1.2.3 From 7b220f3db55c3b7bd38059aa1a2dcf7f6a8f7402 Mon Sep 17 00:00:00 2001 From: Julien Brianceau Date: Tue, 13 Dec 2016 14:57:01 +0100 Subject: Add missing include in embed.cc This changes fixes "error C2039: 'getline': is not a member of 'std'" compilation error. --- src/google/protobuf/compiler/js/embed.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'src/google') diff --git a/src/google/protobuf/compiler/js/embed.cc b/src/google/protobuf/compiler/js/embed.cc index 5d7163fa..be2ffdd4 100644 --- a/src/google/protobuf/compiler/js/embed.cc +++ b/src/google/protobuf/compiler/js/embed.cc @@ -32,6 +32,7 @@ #include #include #include +#include const char output_file[] = "well_known_types_embed.cc"; -- cgit v1.2.3