Add missing dll export macros.

This commit is contained in:
liujisi@google.com 2011-07-05 17:16:07 +00:00
parent f36ae07c58
commit 2a89d0022d
4 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -53,7 +53,7 @@ class Message;
namespace compiler {
// Utility class for launching sub-processes.
class Subprocess {
class LIBPROTOC_EXPORT Subprocess {
public:
Subprocess();
~Subprocess();

View File

@ -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

View File

@ -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);