diff options
author | Nehal J Wani <nehaljw.kkd1@gmail.com> | 2018-07-01 14:52:25 -0500 |
---|---|---|
committer | Nehal J Wani <nehaljw.kkd1@gmail.com> | 2018-07-01 16:14:29 -0500 |
commit | f2bcc7aca8797ed95d285f596c5f26b72a318a39 (patch) | |
tree | 18a37d8029969f1108afd00d6ffe593f31830db0 /src | |
parent | 1141bd954271f81cd4eecf17f6d7671fca19de11 (diff) |
Set LIBPROTOBUF_EXPORT on GenericTypeHandler<class google::protobuf::Message>
This should fix https://github.com/google/protobuf/issues/4717
Diffstat (limited to 'src')
-rw-r--r-- | src/google/protobuf/repeated_field.h | 6 |
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); |