aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSilvio Traversaro <pegua1@gmail.com>2017-06-12 17:09:55 +0200
committerGitHub <noreply@github.com>2017-06-12 17:09:55 +0200
commit9094bf0f7e638f68cae72581ae8416e7c2721b41 (patch)
tree3c39fb31e8e8119baabeb34fc17bc87b53f7534d /src
parent96095f3a8577cd61ded2191d267cca70f221a9c9 (diff)
downloadprotobuf-9094bf0f7e638f68cae72581ae8416e7c2721b41.tar.gz
protobuf-9094bf0f7e638f68cae72581ae8416e7c2721b41.tar.bz2
protobuf-9094bf0f7e638f68cae72581ae8416e7c2721b41.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.
Diffstat (limited to 'src')
-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 44174466..a7154b40 100644
--- a/src/google/protobuf/generated_message_util.h
+++ b/src/google/protobuf/generated_message_util.h
@@ -164,7 +164,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();