diff options
author | 2016-12-16 10:56:36 -0800 | |
---|---|---|
committer | 2016-12-16 10:56:36 -0800 | |
commit | f39cf88a347767d25572f7344eab44359d872925 (patch) | |
tree | a6084ebd94db83dd14180dc60ea534d4fc405889 /src/google/protobuf/compiler/csharp/csharp_names.h | |
parent | b18bc9b9448d8c97b289f03a3cbad57191f30fad (diff) | |
parent | 34dc96ba7f141db39c3c4bed8a19811a3e2caa16 (diff) |
Merge pull request #2227 from KindDragon/3.1.x
Missed LIBPROTOC_EXPORT for GRPC added
Diffstat (limited to 'src/google/protobuf/compiler/csharp/csharp_names.h')
-rw-r--r-- | src/google/protobuf/compiler/csharp/csharp_names.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/google/protobuf/compiler/csharp/csharp_names.h b/src/google/protobuf/compiler/csharp/csharp_names.h index 30805187..21758f28 100644 --- a/src/google/protobuf/compiler/csharp/csharp_names.h +++ b/src/google/protobuf/compiler/csharp/csharp_names.h @@ -39,6 +39,7 @@ #define GOOGLE_PROTOBUF_COMPILER_CSHARP_NAMES_H__ #include <string> +#include <google/protobuf/stubs/port.h> namespace google { namespace protobuf { @@ -56,14 +57,14 @@ namespace csharp { // // Returns: // The namespace to use for given file descriptor. -string GetFileNamespace(const FileDescriptor* descriptor); +string LIBPROTOC_EXPORT GetFileNamespace(const FileDescriptor* descriptor); // Requires: // descriptor != NULL // // Returns: // The fully-qualified C# class name. -string GetClassName(const Descriptor* descriptor); +string LIBPROTOC_EXPORT GetClassName(const Descriptor* descriptor); // Requires: // descriptor != NULL @@ -72,7 +73,7 @@ string GetClassName(const Descriptor* descriptor); // The fully-qualified name of the C# class that provides // access to the file descriptor. Proto compiler generates // such class for each .proto file processed. -string GetReflectionClassName(const FileDescriptor* descriptor); +string LIBPROTOC_EXPORT GetReflectionClassName(const FileDescriptor* descriptor); // Generates output file name for given file descriptor. If generate_directories // is true, the output file will be put under directory corresponding to file's @@ -88,7 +89,7 @@ string GetReflectionClassName(const FileDescriptor* descriptor); // The file name to use as output file for given file descriptor. In case // of failure, this function will return empty string and error parameter // will contain the error message. -string GetOutputFile( +string LIBPROTOC_EXPORT GetOutputFile( const google::protobuf::FileDescriptor* descriptor, const string file_extension, const bool generate_directories, |