Set LIBPROTOBUF_EXPORT on GenericTypeHandler<class google::protobuf::Message>
This should fix https://github.com/google/protobuf/issues/4717
This commit is contained in:
parent
33d41628c2
commit
fd25c5617b
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user