diff options
author | Julien Brianceau <jbriance@cisco.com> | 2016-11-23 10:52:15 +0100 |
---|---|---|
committer | Julien Brianceau <jbriance@cisco.com> | 2016-12-07 22:04:14 +0100 |
commit | 788d14a46bee9472edbcab007289d23e1ba9720c (patch) | |
tree | 078305d2dc96c68d10bc97b2524b4f5040319715 | |
parent | 607b92149948393311d66329b9851f5971662f19 (diff) | |
download | protobuf-788d14a46bee9472edbcab007289d23e1ba9720c.tar.gz protobuf-788d14a46bee9472edbcab007289d23e1ba9720c.tar.bz2 protobuf-788d14a46bee9472edbcab007289d23e1ba9720c.zip |
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.
-rw-r--r-- | src/google/protobuf/generated_message_util.h | 2 |
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(); |