From 691f6da30b7d85a2a9560e3ec0eab737ce4c6f4a Mon Sep 17 00:00:00 2001 From: "liujisi@google.com" Date: Tue, 15 Jan 2013 02:19:41 +0000 Subject: Rollback the export macros on internal classes/functions. --- src/google/protobuf/compiler/java/java_doc_comment.h | 2 +- src/google/protobuf/compiler/subprocess.h | 2 +- src/google/protobuf/message.cc | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/google/protobuf/compiler/java/java_doc_comment.h b/src/google/protobuf/compiler/java/java_doc_comment.h index 7244d9ba..f77720b6 100644 --- a/src/google/protobuf/compiler/java/java_doc_comment.h +++ b/src/google/protobuf/compiler/java/java_doc_comment.h @@ -59,7 +59,7 @@ void WriteMethodDocComment(io::Printer* printer, const MethodDescriptor* method); // Exposed for testing only. -LIBPROTOC_EXPORT string EscapeJavadoc(const string& input); +string EscapeJavadoc(const string& input); } // namespace java } // namespace compiler diff --git a/src/google/protobuf/compiler/subprocess.h b/src/google/protobuf/compiler/subprocess.h index 00564964..de9fce9e 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 LIBPROTOC_EXPORT Subprocess { +class Subprocess { public: Subprocess(); ~Subprocess(); diff --git a/src/google/protobuf/message.cc b/src/google/protobuf/message.cc index 441be534..6119d26a 100644 --- a/src/google/protobuf/message.cc +++ b/src/google/protobuf/message.cc @@ -188,7 +188,7 @@ bool Message::SerializePartialToOstream(ostream* output) const { Reflection::~Reflection() {} #define HANDLE_TYPE(TYPE, CPPTYPE, CTYPE) \ -template<> LIBPROTOBUF_EXPORT \ +template<> \ const RepeatedField& Reflection::GetRepeatedField( \ const Message& message, const FieldDescriptor* field) const { \ return *static_cast* >( \ @@ -196,7 +196,7 @@ const RepeatedField& Reflection::GetRepeatedField( \ field, CPPTYPE, CTYPE, NULL)); \ } \ \ -template<> LIBPROTOBUF_EXPORT \ +template<> \ RepeatedField* Reflection::MutableRepeatedField( \ Message* message, const FieldDescriptor* field) const { \ return static_cast* >( \ -- cgit v1.2.3