Commit 2a89d002 authored by liujisi@google.com's avatar liujisi@google.com

Add missing dll export macros.

parent f36ae07c
...@@ -64,7 +64,7 @@ namespace compiler { ...@@ -64,7 +64,7 @@ namespace compiler {
class CodeGenerator; // code_generator.h class CodeGenerator; // code_generator.h
// Implements main() for a protoc plugin exposing the given code generator. // 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 compiler
} // namespace protobuf } // namespace protobuf
......
...@@ -53,7 +53,7 @@ class Message; ...@@ -53,7 +53,7 @@ class Message;
namespace compiler { namespace compiler {
// Utility class for launching sub-processes. // Utility class for launching sub-processes.
class Subprocess { class LIBPROTOC_EXPORT Subprocess {
public: public:
Subprocess(); Subprocess();
~Subprocess(); ~Subprocess();
......
...@@ -68,11 +68,11 @@ namespace internal { ...@@ -68,11 +68,11 @@ namespace internal {
// Constants for special floating point values. // Constants for special floating point values.
double Infinity(); LIBPROTOBUF_EXPORT double Infinity();
double NaN(); LIBPROTOBUF_EXPORT double NaN();
// Constant used for empty default strings. // Constant used for empty default strings.
extern const ::std::string kEmptyString; LIBPROTOBUF_EXPORT extern const ::std::string kEmptyString;
} // namespace internal } // namespace internal
......
...@@ -305,7 +305,7 @@ class LIBPROTOBUF_EXPORT StringTypeHandlerBase { ...@@ -305,7 +305,7 @@ class LIBPROTOBUF_EXPORT StringTypeHandlerBase {
static void Merge(const string& from, string* to) { *to = from; } static void Merge(const string& from, string* to) { *to = from; }
}; };
class LIBPROTOBUF_EXPORT StringTypeHandler : public StringTypeHandlerBase { class StringTypeHandler : public StringTypeHandlerBase {
public: public:
static int SpaceUsed(const string& value) { static int SpaceUsed(const string& value) {
return sizeof(value) + StringSpaceUsedExcludingSelf(value); return sizeof(value) + StringSpaceUsedExcludingSelf(value);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment