aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Julien Brianceau <jbriance@cisco.com>2016-12-13 10:09:11 +0100
committerGravatar Julien Brianceau <jbriance@cisco.com>2016-12-13 10:09:11 +0100
commit83c728a9402fe6a78af53ed471619eda3523d8f5 (patch)
treebb7cc08617d34aea1ba1508c78e6e33b10adff14
parenteb455ce1c92e9fc217ece0cfc58f9a698fd0f635 (diff)
Add missing includes
This changes fixes "use of undeclared identifier 'INT_MAX'" compilation error.
-rw-r--r--src/google/protobuf/io/coded_stream.h1
-rw-r--r--src/google/protobuf/message_lite.h1
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>