aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNehal J Wani <nehaljw.kkd1@gmail.com>2018-07-01 14:52:25 -0500
committerNehal J Wani <nehaljw.kkd1@gmail.com>2018-08-15 19:42:21 +0530
commitfd25c5617b2a1f1ee875bf6c1e7518473409a211 (patch)
treee57673aeee62c369fb72cbce92bcbdd1df9409e4
parent33d41628c2d06f3d51764c08caaf7e9ecc305065 (diff)
downloadprotobuf-fd25c5617b2a1f1ee875bf6c1e7518473409a211.tar.gz
protobuf-fd25c5617b2a1f1ee875bf6c1e7518473409a211.tar.bz2
protobuf-fd25c5617b2a1f1ee875bf6c1e7518473409a211.zip
Set LIBPROTOBUF_EXPORT on GenericTypeHandler<class google::protobuf::Message>
This should fix https://github.com/google/protobuf/issues/4717
-rw-r--r--src/google/protobuf/repeated_field.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/google/protobuf/repeated_field.h b/src/google/protobuf/repeated_field.h
index b47ea994..fbfbf942 100644
--- a/src/google/protobuf/repeated_field.h
+++ b/src/google/protobuf/repeated_field.h
@@ -705,13 +705,13 @@ void GenericTypeHandler<string>::Merge(const string& from,
// Declarations of the specialization as we cannot define them here, as the
// header that defines ProtocolMessage depends on types defined in this header.
#define DECLARE_SPECIALIZATIONS_FOR_BASE_PROTO_TYPES(TypeName) \
- template<> \
+ template<> LIBPROTOBUF_EXPORT \
TypeName* GenericTypeHandler<TypeName>::NewFromPrototype( \
const TypeName* prototype, google::protobuf::Arena* arena); \
- template<> \
+ template<> LIBPROTOBUF_EXPORT \
google::protobuf::Arena* GenericTypeHandler<TypeName>::GetArena( \
TypeName* value); \
- template<> \
+ template<> LIBPROTOBUF_EXPORT \
void* GenericTypeHandler<TypeName>::GetMaybeArenaPointer( \
TypeName* value);