Преглед на файлове

Fix missing LIBPROTOC_EXPORT.

This makes possible to build grpc_php_plugin with protobuf in shared mode.
Egor Pugin преди 7 години
родител
ревизия
dc68d98cc2
променени са 1 файла, в които са добавени 6 реда и са изтрити 3 реда
  1. 6 3
      src/google/protobuf/compiler/php/php_generator.h

+ 6 - 3
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