diff options
author | kenton@google.com <kenton@google.com@630680e5-0e50-0410-840e-4b1c322b438d> | 2009-04-28 01:48:06 +0000 |
---|---|---|
committer | kenton@google.com <kenton@google.com@630680e5-0e50-0410-840e-4b1c322b438d> | 2009-04-28 01:48:06 +0000 |
commit | ccc11678c734a8c52bc025b2b4c1b21e5f12abc7 (patch) | |
tree | f3de386b6a89af470b0d41a5dbf0f8dfacb6a8ec /src/google/protobuf/generated_message_reflection.h | |
parent | ef3730c2df51aa227250cf4f28fd1e4839916877 (diff) |
Make building libprotobuf as a DLL work again.
Diffstat (limited to 'src/google/protobuf/generated_message_reflection.h')
-rw-r--r-- | src/google/protobuf/generated_message_reflection.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/google/protobuf/generated_message_reflection.h b/src/google/protobuf/generated_message_reflection.h index 8f1c9cfc..44231c6b 100644 --- a/src/google/protobuf/generated_message_reflection.h +++ b/src/google/protobuf/generated_message_reflection.h @@ -387,12 +387,11 @@ inline To dynamic_cast_if_available(From from) { // This is slightly complicated because small strings store their data within // the string object but large strings do not. LIBPROTOBUF_EXPORT int StringSpaceUsedExcludingSelf(const string& str); -int StringSpaceUsedExcludingSelf(const string& str); // Helper for EnumType_Parse functions: try to parse the string 'name' as an // enum name of the given type, returning true and filling in value on success, // or returning false and leaving value unchanged on failure. -bool ParseNamedEnum(const EnumDescriptor* descriptor, +LIBPROTOBUF_EXPORT bool ParseNamedEnum(const EnumDescriptor* descriptor, const string& name, int* value); @@ -409,7 +408,7 @@ bool ParseNamedEnum(const EnumDescriptor* descriptor, // Just a wrapper around printing the name of a value. The main point of this // function is not to be inlined, so that you can do this without including // descriptor.h. -const string& NameOfEnum(const EnumDescriptor* descriptor, int value); +LIBPROTOBUF_EXPORT const string& NameOfEnum(const EnumDescriptor* descriptor, int value); } // namespace internal |