diff options
author | liujisi@google.com <liujisi@google.com@630680e5-0e50-0410-840e-4b1c322b438d> | 2011-07-05 17:16:07 +0000 |
---|---|---|
committer | liujisi@google.com <liujisi@google.com@630680e5-0e50-0410-840e-4b1c322b438d> | 2011-07-05 17:16:07 +0000 |
commit | 2a89d0022de803fe2dfd4832c4cb16d7ce99de84 (patch) | |
tree | 3916ead5da02f65500b6de3bba4187d01c650e4f /src/google | |
parent | f36ae07c58db50165d13a01a958a3f7631648dce (diff) | |
download | protobuf-2a89d0022de803fe2dfd4832c4cb16d7ce99de84.tar.gz protobuf-2a89d0022de803fe2dfd4832c4cb16d7ce99de84.tar.bz2 protobuf-2a89d0022de803fe2dfd4832c4cb16d7ce99de84.zip |
Add missing dll export macros.
Diffstat (limited to 'src/google')
-rw-r--r-- | src/google/protobuf/compiler/plugin.h | 2 | ||||
-rw-r--r-- | src/google/protobuf/compiler/subprocess.h | 2 | ||||
-rw-r--r-- | src/google/protobuf/generated_message_util.h | 6 | ||||
-rw-r--r-- | 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); |