aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/google/protobuf/util/field_comparator_test.cc
diff options
context:
space:
mode:
authorGravatar Feng Xiao <xfxyjwf@gmail.com>2015-11-02 12:39:27 -0800
committerGravatar Feng Xiao <xfxyjwf@gmail.com>2015-11-02 12:39:27 -0800
commit9659ea9e56bfc34f67d7ce73f946d5b58183a833 (patch)
treea54835fdafe97f9a7d96933b4cb3689eb31b726f /src/google/protobuf/util/field_comparator_test.cc
parent59635c13d9e9ce21ee7ee4c1493c3d437fc9d87c (diff)
Fix compilation errors when built internally.
1. mathlimits.h must be included before the inclusion of cmath (which gtest/gtest.h seems to include). 2. hash function for StringPiece doesn't work. Change-Id: I358a25d941a25b10b39fe76780eda41557699811
Diffstat (limited to 'src/google/protobuf/util/field_comparator_test.cc')
-rw-r--r--src/google/protobuf/util/field_comparator_test.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/google/protobuf/util/field_comparator_test.cc b/src/google/protobuf/util/field_comparator_test.cc
index 748c7d11..d3d34602 100644
--- a/src/google/protobuf/util/field_comparator_test.cc
+++ b/src/google/protobuf/util/field_comparator_test.cc
@@ -34,9 +34,10 @@
#include <google/protobuf/unittest.pb.h>
#include <google/protobuf/descriptor.h>
-#include <gtest/gtest.h>
#include <google/protobuf/stubs/mathutil.h>
+#include <gtest/gtest.h>
+
namespace google {
namespace protobuf {
namespace util {