From dc68d98cc2f8ff6d33c99a225c6e293e02f9b961 Mon Sep 17 00:00:00 2001 From: Egor Pugin Date: Sun, 25 Mar 2018 19:56:04 +0300 Subject: Fix missing LIBPROTOC_EXPORT. This makes possible to build grpc_php_plugin with protobuf in shared mode. --- src/google/protobuf/compiler/php/php_generator.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src') 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 -- cgit v1.2.3