aboutsummaryrefslogtreecommitdiff
path: root/src/google/protobuf/compiler/csharp/csharp_helpers.h
diff options
context:
space:
mode:
authorJon Skeet <jonskeet@google.com>2016-04-12 09:32:08 +0100
committerJon Skeet <jonskeet@google.com>2016-04-20 03:46:03 +0100
commitd90d615f716c6d2f0ede2b2ce23705d4c502ea45 (patch)
tree4246e99256f2fe5ef1eeeb2fbc1345db99391f95 /src/google/protobuf/compiler/csharp/csharp_helpers.h
parent790f4c8e3743c28c30e6f052cb3f5535490c87e4 (diff)
downloadprotobuf-d90d615f716c6d2f0ede2b2ce23705d4c502ea45.tar.gz
protobuf-d90d615f716c6d2f0ede2b2ce23705d4c502ea45.tar.bz2
protobuf-d90d615f716c6d2f0ede2b2ce23705d4c502ea45.zip
Attempt to fix AppVeyor build by exporting GetEnumValueName
Diffstat (limited to 'src/google/protobuf/compiler/csharp/csharp_helpers.h')
-rw-r--r--src/google/protobuf/compiler/csharp/csharp_helpers.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/google/protobuf/compiler/csharp/csharp_helpers.h b/src/google/protobuf/compiler/csharp/csharp_helpers.h
index 8830e957..1563ca7e 100644
--- a/src/google/protobuf/compiler/csharp/csharp_helpers.h
+++ b/src/google/protobuf/compiler/csharp/csharp_helpers.h
@@ -36,6 +36,7 @@
#define GOOGLE_PROTOBUF_COMPILER_CSHARP_HELPERS_H__
#include <string>
+#include <google/protobuf/stubs/port.h>
#include <google/protobuf/descriptor.pb.h>
#include <google/protobuf/descriptor.h>
#include <google/protobuf/compiler/code_generator.h>
@@ -93,7 +94,9 @@ inline std::string UnderscoresToCamelCase(const std::string& input, bool cap_nex
std::string UnderscoresToPascalCase(const std::string& input);
-std::string GetEnumValueName(const std::string& enum_name, const std::string& enum_value_name);
+// Note that we wouldn't normally want to export this (we're not expecting
+// it to be used outside libprotoc itself) but this exposes it for testing.
+std::string LIBPROTOBUF_EXPORT GetEnumValueName(const std::string& enum_name, const std::string& enum_value_name);
// TODO(jtattermusch): perhaps we could move this to strutil
std::string StringToBase64(const std::string& input);