aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/google/protobuf/generated_message_util.h
diff options
context:
space:
mode:
authorGravatar Julien Brianceau <jbriance@cisco.com>2016-11-23 10:52:15 +0100
committerGravatar Julien Brianceau <jbriance@cisco.com>2016-12-07 22:04:14 +0100
commit788d14a46bee9472edbcab007289d23e1ba9720c (patch)
tree078305d2dc96c68d10bc97b2524b4f5040319715 /src/google/protobuf/generated_message_util.h
parent607b92149948393311d66329b9851f5971662f19 (diff)
Export symbols used in inline functions
fixed_address_empty_string symbol is used in an inline function. We have to export it to avoid undefined reference link errors.
Diffstat (limited to 'src/google/protobuf/generated_message_util.h')
-rw-r--r--src/google/protobuf/generated_message_util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/google/protobuf/generated_message_util.h b/src/google/protobuf/generated_message_util.h
index b1c49e37..19bac7dc 100644
--- a/src/google/protobuf/generated_message_util.h
+++ b/src/google/protobuf/generated_message_util.h
@@ -125,7 +125,7 @@ class ExplicitlyConstructed {
// Default empty string object. Don't use this directly. Instead, call
// GetEmptyString() to get the reference.
-extern ExplicitlyConstructed< ::std::string> fixed_address_empty_string;
+LIBPROTOBUF_EXPORT extern ExplicitlyConstructed< ::std::string> fixed_address_empty_string;
LIBPROTOBUF_EXPORT extern ProtobufOnceType empty_string_once_init_;
LIBPROTOBUF_EXPORT void InitEmptyString();