aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Egor Pugin <egor.pugin@gmail.com>2018-03-25 19:56:04 +0300
committerGravatar GitHub <noreply@github.com>2018-03-25 19:56:04 +0300
commitdc68d98cc2f8ff6d33c99a225c6e293e02f9b961 (patch)
tree8b0dbb9eb1152428999469345d8fa1c050fe4392 /src
parent2c963d3c24f51c4e5b278bc8f843bcf7221fb790 (diff)
Fix missing LIBPROTOC_EXPORT.
This makes possible to build grpc_php_plugin with protobuf in shared mode.
Diffstat (limited to 'src')
-rw-r--r--src/google/protobuf/compiler/php/php_generator.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/google/protobuf/compiler/php/php_generator.h b/src/google/protobuf/compiler/php/php_generator.h
index 67e70bc7..54a95ef5 100644
--- a/src/google/protobuf/compiler/php/php_generator.h
+++ b/src/google/protobuf/compiler/php/php_generator.h
@@ -54,9 +54,12 @@ class LIBPROTOC_EXPORT Generator
// To skip reserved keywords in php, some generated classname are prefixed.
// Other code generators may need following API to figure out the actual
// classname.
-std::string GeneratedClassName(const google::protobuf::Descriptor* desc);
-std::string GeneratedClassName(const google::protobuf::EnumDescriptor* desc);
-std::string GeneratedClassName(const google::protobuf::ServiceDescriptor* desc);
+LIBPROTOC_EXPORT std::string GeneratedClassName(
+ const google::protobuf::Descriptor* desc);
+LIBPROTOC_EXPORT std::string GeneratedClassName(
+ const google::protobuf::EnumDescriptor* desc);
+LIBPROTOC_EXPORT std::string GeneratedClassName(
+ const google::protobuf::ServiceDescriptor* desc);
} // namespace php
} // namespace compiler