From 2a89d0022de803fe2dfd4832c4cb16d7ce99de84 Mon Sep 17 00:00:00 2001 From: "liujisi@google.com" Date: Tue, 5 Jul 2011 17:16:07 +0000 Subject: Add missing dll export macros. --- src/google/protobuf/compiler/plugin.h | 2 +- src/google/protobuf/compiler/subprocess.h | 2 +- src/google/protobuf/generated_message_util.h | 6 +++--- src/google/protobuf/repeated_field.h | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/google/protobuf/compiler/plugin.h b/src/google/protobuf/compiler/plugin.h index 64dfb1d2..7c403332 100644 --- a/src/google/protobuf/compiler/plugin.h +++ b/src/google/protobuf/compiler/plugin.h @@ -64,7 +64,7 @@ namespace compiler { class CodeGenerator; // code_generator.h // Implements main() for a protoc plugin exposing the given code generator. -int PluginMain(int argc, char* argv[], const CodeGenerator* generator); +LIBPROTOC_EXPORT int PluginMain(int argc, char* argv[], const CodeGenerator* generator); } // namespace compiler } // namespace protobuf diff --git a/src/google/protobuf/compiler/subprocess.h b/src/google/protobuf/compiler/subprocess.h index de9fce9e..00564964 100644 --- a/src/google/protobuf/compiler/subprocess.h +++ b/src/google/protobuf/compiler/subprocess.h @@ -53,7 +53,7 @@ class Message; namespace compiler { // Utility class for launching sub-processes. -class Subprocess { +class LIBPROTOC_EXPORT Subprocess { public: Subprocess(); ~Subprocess(); diff --git a/src/google/protobuf/generated_message_util.h b/src/google/protobuf/generated_message_util.h index 1a2343d4..77ae1064 100644 --- a/src/google/protobuf/generated_message_util.h +++ b/src/google/protobuf/generated_message_util.h @@ -68,11 +68,11 @@ namespace internal { // Constants for special floating point values. -double Infinity(); -double NaN(); +LIBPROTOBUF_EXPORT double Infinity(); +LIBPROTOBUF_EXPORT double NaN(); // Constant used for empty default strings. -extern const ::std::string kEmptyString; +LIBPROTOBUF_EXPORT extern const ::std::string kEmptyString; } // namespace internal diff --git a/src/google/protobuf/repeated_field.h b/src/google/protobuf/repeated_field.h index 6080ddcc..aed4ce9f 100644 --- a/src/google/protobuf/repeated_field.h +++ b/src/google/protobuf/repeated_field.h @@ -305,7 +305,7 @@ class LIBPROTOBUF_EXPORT StringTypeHandlerBase { static void Merge(const string& from, string* to) { *to = from; } }; -class LIBPROTOBUF_EXPORT StringTypeHandler : public StringTypeHandlerBase { +class StringTypeHandler : public StringTypeHandlerBase { public: static int SpaceUsed(const string& value) { return sizeof(value) + StringSpaceUsedExcludingSelf(value); -- cgit v1.2.3