diff options
author | Julien Brianceau <jbriance@cisco.com> | 2016-12-13 10:09:11 +0100 |
---|---|---|
committer | Julien Brianceau <jbriance@cisco.com> | 2016-12-13 10:09:11 +0100 |
commit | 83c728a9402fe6a78af53ed471619eda3523d8f5 (patch) | |
tree | bb7cc08617d34aea1ba1508c78e6e33b10adff14 /src | |
parent | eb455ce1c92e9fc217ece0cfc58f9a698fd0f635 (diff) | |
download | protobuf-83c728a9402fe6a78af53ed471619eda3523d8f5.tar.gz protobuf-83c728a9402fe6a78af53ed471619eda3523d8f5.tar.bz2 protobuf-83c728a9402fe6a78af53ed471619eda3523d8f5.zip |
Add missing includes
This changes fixes "use of undeclared identifier 'INT_MAX'"
compilation error.
Diffstat (limited to 'src')
-rw-r--r-- | src/google/protobuf/io/coded_stream.h | 1 | ||||
-rw-r--r-- | src/google/protobuf/message_lite.h | 1 |
2 files changed, 2 insertions, 0 deletions
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 <assert.h> +#include <climits> #include <string> #include <utility> #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 <climits> #include <google/protobuf/stubs/common.h> #include <google/protobuf/stubs/logging.h> |