From d61aede89cf188367766b971f59cf57d7835d8e8 Mon Sep 17 00:00:00 2001 From: Josh Haberman Date: Tue, 4 Sep 2018 10:58:54 -0700 Subject: Down-integrate from google3. --- src/google/protobuf/reflection_ops.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/google/protobuf/reflection_ops.h') diff --git a/src/google/protobuf/reflection_ops.h b/src/google/protobuf/reflection_ops.h index 78666f30..b30c050a 100644 --- a/src/google/protobuf/reflection_ops.h +++ b/src/google/protobuf/reflection_ops.h @@ -45,6 +45,8 @@ #error "You cannot SWIG proto headers" #endif +#include + namespace google { namespace protobuf { namespace internal { @@ -58,7 +60,7 @@ namespace internal { // the Message interface. // // This class is really a namespace that contains only static methods. -class LIBPROTOBUF_EXPORT ReflectionOps { +class PROTOBUF_EXPORT ReflectionOps { public: static void Copy(const Message& from, Message* to); static void Merge(const Message& from, Message* to); @@ -70,8 +72,8 @@ class LIBPROTOBUF_EXPORT ReflectionOps { // paths (e.g. "foo.bar[5].baz") to *names. "prefix" will be attached to // the front of each name. static void FindInitializationErrors(const Message& message, - const string& prefix, - std::vector* errors); + const std::string& prefix, + std::vector* errors); private: // All methods are static. No need to construct. @@ -82,4 +84,6 @@ class LIBPROTOBUF_EXPORT ReflectionOps { } // namespace protobuf } // namespace google +#include + #endif // GOOGLE_PROTOBUF_REFLECTION_OPS_H__ -- cgit v1.2.3